问题描述
[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(default-test)onprojectbook:Executiondefault-testofgoalorg.apache.maven.plugins:maven-surefire-plugin:2.12.4:testfailed:Pluginorg.apache.maven.plugins:maven-surefire-plugin:2.12.4oroneofitsdependenciescouldnotberesolved:Thefollowingartifactscouldnotberesolved:org.apache.maven.surefire:surefire-api:jar:2.12.4,org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1:Couldnotfindartifactorg.apache.maven.surefire:surefire-api:jar:2.12.4incentral(http://192.168.16.142:8081/nexus/content/repositories/central)->[Help1]请问这是为何?我是初心者,请热心的人帮忙回答,谢谢!
解决方案
本帖最后由 qq475883831 于 2013-08-14 11:10:48 编辑
解决方案二:
同问,没人回复吗?
解决方案三:
Couldnotfindartifactorg.apache.maven.surefire:surefire-api:jar:2.12.4incentral(http://192.168.16.142:8081/nexus/content/repositories/central)很明显提示你的maven库中找不到这个jar包
解决方案四:
引用2楼feijiing的回复:
Couldnotfindartifactorg.apache.maven.surefire:surefire-api:jar:2.12.4incentral(http://192.168.16.142:8081/nexus/content/repositories/central)很明显提示你的maven库中找不到这个jar包
你试着把这个jar包添加进去再试下
解决方案五:
将surefire-booter:jar包上传至服务器目录下/root/.m2/repository/org/apache/maven/surefire/surefire-bootermvncleaninstall-U试下呢我的这样就解决了