我的公司政策限制我们从公共存储库(maven_central、spring-io 等)下载第三方工件我们使用 Nexus 作为存储库管理器,它托管我们公司政策批准的所有工件。
我们正在尝试在我们的项目中使用 io-platform bom pom 来管理所有 spring 依赖项。
我们已在公司存储库中上传了所有 bom 及其依赖项。还经过验证,公司回购中的所有内容都在那里。
在我的 settings.xml 中,正确提及了所有存储库(由公司托管)。但不知何故,对于 spring-framework-bom 项目,maven 仅在中央搜索,即使它在 settings.xml 中被禁用。理想情况下,它应该首先在我们公司的存储库中搜索。
我们得到以下异常。
Exception trace:
org.apache.maven.reactor.MavenExecutionException: POM 'org.springframework:spring-framework-bom' not found in repository: Unable to download the artifact from any repository org.springframework:spring-framework-bom:pom:4.0.6.RELEASE
from the specified remote repositories:
central (http://repo1.maven.org/maven2)