bootstrap class path not set in conjunction with -source 1.6
程序员文章站
2022-03-10 09:17:18
...
在 maven 编译Java项目中抛出一下错误:
bootstrap class path not set in conjunction with -source 1.6
在项目pom.xml 里面增加 这个插件:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>