在 Pom.xml 增加

<build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <compilerArguments>
                        <verbose />
                        <bootclasspath>/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/rt.jar</bootclasspath>
                    </compilerArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>

仅适用1.7 jdk

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2021-07-22
  • 2021-12-26
  • 2022-12-23
  • 2021-07-11
  • 2021-05-22
猜你喜欢
  • 2021-12-13
  • 2021-05-20
  • 2022-02-04
  • 2021-12-03
  • 2021-10-30
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案