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