【问题标题】:Local Nexus Server - Mirrors本地 Nexus 服务器 - 镜像
【发布时间】:2017-04-01 03:24:26
【问题描述】:

我仍然收到此错误:

 [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-resources-plugin
:jar:2.6 in http://it-nexus.myDomain: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 -> [Help 1]

这与这个镜像配置有关:

<mirrors>
  <mirror>
     <id>nexus</id>
     <name>Nexus Public Mirror</name>
     <url>http://it-nexus.myDomain:8081/nexus/content/groups/public</url>
     <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

我不清楚如何配置镜像,以便我可以使用 mvn deploy 上传我的 Artefacts。

在我看来,Maven 在我的普通 Nexus- 服务器上查找插件人工制品。在我看来,应该以这种方式级联,如果我的本地连接中没有人工制品,则应该在中心查找它。 该怎么做?

【问题讨论】:

标签: maven settings nexus


【解决方案1】:

对我来说,你需要做什么来解决这个问题并不是很明显,但我觉得我想分享一个来自我们团队中的一个人的工作示例:https://github.com/dulanism/java-test/blob/master/pom.xml

您需要设置一个类似于 Dulani 在他的 pom.xml 文件中所做的配置文件。通过该设置,您可以将版本和快照发布到本地 Nexus Repository Manager。

【讨论】:

    猜你喜欢
    • 2019-08-03
    • 2017-04-08
    • 2019-10-08
    • 2014-01-22
    • 2022-01-10
    • 2012-11-02
    • 1970-01-01
    • 2011-10-31
    • 1970-01-01
    相关资源
    最近更新 更多