Maven 配置nexus仓库 POM文件报错

威廉Jocker 发布于 2016/09/19 15:12
阅读 456
收藏 0

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>

加载中
0
梁金晶
梁金晶
你的本地镜像正常启动了吗
0
首席粉丝
首席粉丝

1.先把缓存文件先清掉:

del /S /F /Q m2e-lastUpdated.properties
del /S /F /Q *.jar.lastUpdated

2.检查本地私服是否正常启动

3.检查远程的代理服务是否正常

返回顶部
顶部