码迷,mamicode.com
首页 > 其他好文 > 详细

maven遇到的错误 -----更新中

时间:2018-10-31 20:16:54      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:11.2   jar包   OWIN   manage   follow   toolchain   版本   model   moni   

1.根据本地仓库中的jar包判断需要配置成哪个版本的,在pom.xml相应版本的配置

技术分享图片

2.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project cboss-utility: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.5 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.9, org.apache.maven:maven-artifact:jar:2.0.9, org.apache.maven:maven-project:jar:2.0.9, org.apache.maven:maven-settings:jar:2.0.9, org.apache.maven:maven-profile:jar:2.0.9, org.apache.maven:maven-model:jar:2.0.9, org.apache.maven:maven-artifact-manager:jar:2.0.9, org.apache.maven:maven-plugin-registry:jar:2.0.9, org.apache.maven:maven-core:jar:2.0.9, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9, org.apache.maven:maven-repository-metadata:jar:2.0.9, org.apache.maven:maven-error-diagnostics:jar:2.0.9, org.apache.maven:maven-plugin-descriptor:jar:2.0.9, org.apache.maven:maven-monitor:jar:2.0.9, org.apache.maven:maven-toolchain:jar:2.0.9: Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in http://20.26.11.22:7007/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

解决:有可能是版本过高,导致的插件不能使用,可以换一个合适的版本

 

maven遇到的错误 -----更新中

标签:11.2   jar包   OWIN   manage   follow   toolchain   版本   model   moni   

原文地址:https://www.cnblogs.com/hqsbrx/p/9884951.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!