在eclipse中使用maven构建Web项目时报错: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of i

来源:互联网 发布:sql reference 编辑:程序博客网 时间:2024/06/03 14:15

maven install 时Eclipse的错误提示如下

[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM E:\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4\maven-surefire-plugin-2.12.4.pom: end tag name </body> must match start tag name <hr> from line 888 (position: START_TAG seen ...          08-Nov-2014 19:04                 207\r\n</pre><hr></body>... @888:18)  @ line 888, column 18


解决方法:Preferences–>Maven–>User Settings–>Global Settings,指定到我的配置文件:/usr/share/maven/conf/settings.xml, 保存配置,刷新项目,提示下载maven的东东了,到此问题真正解决了~~~

阅读全文
0 0
原创粉丝点击