maven2 环境警告 j2se-1.5

来源:互联网 发布:linux服务器状态 编辑:程序博客网 时间:2024/05/16 17:30


 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>