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/

通过报错信息找到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

时间: 2024-10-06 04:22:00

Maven报错的相关文章

Maven报错“未结束的字符串字面值” “需要为 class、interface 或 enum”等

eclipse里面编译完全正常,mvn clean install 这么惨的错误: Compilation failure: [ERROR] *.java:[38,27] 未结束的字符串字面值 [ERROR] *.java:[38,53] 需要 ';' [ERROR] *.java:[41,19] 需要 ')' [ERROR] *.java:[41,12] 不是语句 [ERROR] *.java:[41,23] 需要 ';' [ERROR] *.java:[41,26] 不是语句 [ERROR]

web转maven报错

http://howtodoinjava.com/2013/06/04/solved-java-compiler-level-does-not-match-the-version-of-the-installed-java-project-facet/ mvn eclipse:eclipse -Dwtpversion=2.0 web转maven报错

创建Maven报错

Maven报错:maven-archetype-webapp:RELEASE from any of the configured repositories 今天学习maven,在控制台下新建maven项目没有问题,但是在STS(eclipse)下创建maven项目老是报错,郁闷死了: ---------------------------------------------------- 错误信息:Could not resolve archetype org.apache.maven.arc

maven报错(http://repo.maven.apache.org/maven2): No response received after 60000

报错详情:Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle

Maven报错 解决方案.ERROR: No goals have been specified for this build. You must specify a valid lifecycle 报错: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal>

关于Maven报错的一些解决办法(别处贴的)

1.警告:The tag handler class for "s:form"(org.apache.struts2.views.jsp.ui.FormTag) was not found on the JavaBuild Path这个问题终于可以解决了,在出问题的页面  <s:form> 标签前后删除空格后保存文件警告即可消失,即<s:form>为改行的起始,然后保存. 2.Eclipse下javacompiler level does not match t

【Maven报错】mvn -v的时候报错

mvn -v的时候报错,后来知道是jdk(1.6)版本低了,与maven 3.3.9要求的jdk 7不匹配. 把环境变量中的path改为匹配的maven版本即可.

项目中的报错信息,maven报错等的总结

Maven是一个自动化的构建和管理工具.在项目开发中,如果遇到了错误(红叉),一般有如下的解决方法: 1.java.lang.UnsatisfiedLinkError: E:\apache-tomcat-7.0.52\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform 遇到以上的情况,http://www.apache.org/dist/tomcat/tomcat-connectors/native/ 到该

Maven报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp

郁闷了两天,创建maven项目时,eclipse报错:Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp,详细信息如下图: 此类报错产生的原因分以下两种: 1.Catalog 相关类型缺失:     2.ide下载相关jar包时未能完整下载. 针对以上两种原因的解决方案如下:     1.配置Catalog 在eclipse中,点击window-->preferences-->maven--