Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法运行mvn清理_Java_Maven - Fatal编程技术网

Java 无法运行mvn清理

Java 无法运行mvn清理,java,maven,Java,Maven,当我在Windows7电脑上运行“mvn清理”时,会收到如下错误消息。 我尝试重新安装maven,但错误仍未解决。除mvn clean之外的所有其他命令运行正常 [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of

当我在Windows7电脑上运行“mvn清理”时,会收到如下错误消息。 我尝试重新安装maven,但错误仍未解决。除mvn clean之外的所有其他命令运行正常

[INFO] Scanning for projects...
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building SpringMVC Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.222 s
[INFO] Finished at: 2014-03-24T13:02:22+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.pom: end tag name </head> must be the same as start tag <meta> from line 4 (position: TEXT seen ...<meta http-equiv="pragma" content="no-cache">\r\n</head>... @5:8)  @ line 5, column 8
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[INFO]正在扫描项目。。。
[信息]
[信息]使用线程计数为1的生成器org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
[信息]
[信息]------------------------------------------------------------------------
[信息]构建SpringMVC Maven Webapp 1.0-SNAPSHOT
[信息]------------------------------------------------------------------------
[警告]org.apache.maven.plugins:maven clean plugin:jar:2.5的POM无效,可传递依赖项(如果有)将不可用,请启用调试日志以了解更多详细信息
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:0.222秒
[信息]完成时间:2014-03-24T13:02:22+05:30
[信息]最终内存:4M/15M
[信息]------------------------------------------------------------------------
[错误]Plugin org.apache.maven.plugins:maven clean Plugin:2.5或其一个依赖项无法解析:未能读取org.apache.maven.plugins:maven clean Plugin:jar:2.5:1构建有效模型时遇到问题
[错误][致命]不可解析的POM C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven clean plugin\2.5\maven-clean-plugin-2.5.POM:结束标记名必须与第4行的开始标记相同(位置:看到文本…\r\n…@5:8)@第5行,第8列
[错误]->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

下载时,您的
clean
插件似乎被损坏了。只需完全删除
C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven clean plugin\2.5
目录,然后重试。

是否只运行mvn clean命令?创建repo后,通常会指示使用-o(脱机)开关运行它。因为新版本并不总是稳定的。你说的
新版本不总是稳定的是什么意思?