新建Maven项目,出现问题

来源:互联网 发布:python自动化开发基础 编辑:程序博客网 时间:2024/05/19 00:38

1.Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. platform Build path JRE System Library Problem

解决方法:

 在eclipse工程,右击JRE System Libray--build path ,然后edit , 在Execution environment中选择 ,你的jdk,如JavaSE-1.6(jdk1.6.0_25)

 

2.Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.3.2:runtime Cause: error in opening zip file

解决方法:本地库里面的jar错误;

E:\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2

下的maven-compiler-plugin-2.3.2.jar zip错误,重新下载,build就OK了;

 

 

3.The Container 'Maven Dependency' is not exists .....

右键项目,Run as Maven install;》 自动下载对应的jar包;

0 0