首页 > 其他 > 详细

Maven报错

时间:2017-07-13 21:26:16      阅读:261      评论:0      收藏:0      [点我收藏+]

今天把项目down下来,项目,报错maven clean ,install 没解决,然后jdk版本也对,maven,M2-HOME安装没有问题.

问题标志为maven install 下的jar包不完全

项目运行报错:

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) on project operationPlat-if: Execution copy-dependencies of goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies failed: Unable to load the mojo ‘copy-dependencies‘ in the plugin ‘org.apache.maven.plugins:maven-dependency-plugin:2.8‘. A required class is missing: org/codehaus/plexus/archiver/ArchiverException

重新配置maven settings.xml发现报错

Unable to update index for nexus|http://10.10.66.33:8082/nexus/content/groups/public-snapshots/

 通过报错信息找到pom.xml文件里面

技术分享

删掉以后,maven  install不再报错.

但是,在web项目中又会报错.

于是乎,问了下同事,

解决方法,重新安装,

安装路径不能有空格,不能有中文.

总结一下 :

1. 确保正确安装maven。(安装路径不能有空格,不能有中文)

2. 确保相关的环境变量存在(M2_HOME、 MAVEN_HOME,JAVA_HOME等)。

3. 确保settings.xml中的库目录指向正确的地址,下载地址也得保证正确.

技术分享

 

4. 如果还是不行就完全删掉maven,从第一条开始做起.

参考资料:

1.myeclipse配置maven环境http://www.cnblogs.com/xusir/archive/2013/12/22/3486520.html

 

Maven报错

原文:http://www.cnblogs.com/doStudying/p/7160899.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!