Maven报错

今天把项目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/

 

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

解决方法 :

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

 

转载于:https://www.cnblogs.com/doStudying/p/7160899.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值