首页 文章

为什么Nexus存储库在使用组存储库时不会下载所需的工件?

提问于
浏览
3

我使用Nexus存储库管理器并配置了默认的... / nexus / content / groups / public / repository并添加了maven central,codehaus snapshot和我创建的内部存储库,并且已经上传了一些工件 .

然后在settings.xml中添加了... / nexus / content / groups / public镜像 . 当我进行maven构建时,maven会查看... / nexus / content / groups / public但不会更新org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-6并报告它找不到 .

但是如果我从settings.xml中删除镜像,那么它会在http://repo1.maven.org/maven2/中查找并正确地获取所有工件 .

我还将发布网址更改为true . 我错过了什么?

1 回答

  • 4

    如果您在Nexus中将存储库添加为 proxy repositories ,请不要忘记将代理添加到Repository Group,您将其用作所有Nexus请求(公共/快照)的mirror - 假设您具有此类配置 .

相关问题