maven2工程报环境警告的解决办法

1、Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.
中文就是:新建maven2工程时,会自动将jre library指向为j2se-1.5,而不是我安装的jdk1.6
--------------
我之前是使用m2eclipse,于是这个警告我一直不知道为何产生和解决。
上次的解决办法是:工程右键,属性里将编译环境从j2se1.5换成自己的版本
现在发现这样做有点不太对了,呵呵。
           org.apache.maven.plugins
           maven-compiler-plugin
             1.6
             1.6
将pom里的编译版本改成自己的jdk版本才是王道啊。。
ps:网上某位大大说的很对,都使用maven工具了,为什么还要用ide的帮助。
呵呵,于是我就使用了eclipse3.3,因为稳定,没有安装m2eclipse,命令都手工在command下敲,pom也直接自己编辑,找依赖就直接去http://maven.net.cn/index.html,熟练了不少啊。

原文地址:https://www.cnblogs.com/xiziyin/p/1608243.html