开发者社区> 问答> 正文

Maven 配置nexus仓库 POM文件报错:配置报错 

POM文件报错信息
Multiple annotations found at this line:
- Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources  failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be  resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin2.5 ()  (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources) - Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin: 2.5:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies  could not be resolved: Failure to transfer org.codehaus.plexus:plexus-interpolation1.13 from http://localhost: 8081/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. Original error: Could not transfer artifact  org.codehaus.plexus:plexus-interpolation1.13 from/to nexus (http://localhost:8081/nexus/content/groups/public):  java.util.concurrent.TimeoutException: No response received after 60000 (org.apache.maven.plugins:maven- resources-plugin:2.5:testResources:default-testResources:process-test-resources)‘’
maven setting.xml配置内容
 <mirror>       <id>nexus</id>       <mirrorOf>*</mirrorOf>       <url>http://localhost:8081/nexus/content/groups/public</url>     </mirror>
<profiles> <profile> <id>nexus</id> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile></profiles>
<activeProfiles> <activeProfile>nexus</activeProfile>   </activeProfiles>

展开
收起
kun坤 2020-05-31 22:49:59 993 0
1 条回答
写回答
取消 提交回答
  • 你的本地镜像正常启动了吗###### 1.先把缓存文件先清掉:
    del /S /F /Q m2e-lastUpdated.properties del /S /F /Q *.jar.lastUpdated

    2.检查本地私服是否正常启动
    3.检查远程的代理服务是否正常

    2020-06-01 09:46:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像