maven2 环境警告 j2se-1.5

时间:2023-01-25 14:56:53


 Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.

手工在 java build path 中加载 jre system library。是可以临时的解决

 

但一旦执行 maven - update project configuration后,配置将恢复,警告又会出现,so

更改pom文件才是王道

 

 

			<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>