我的组织托管自己的 Maven 存储库 (JFrog),并且所有开发计算机都已配置为始终查找企业 Maven 存储库中的所有 Java jar。
现在有时候自己学习新技术,jar下载有时会失败,因为企业mavencentral没有那些jar
[ERROR] Failed to execute goal on project JooqTest: Could not resolve
dependencies for project com.abhi:JooqTest:jar:1.0-SNAPSHOT: The following
artifacts could not be resolved: org.jooq:jooq:jar:3.7.1, org.jooq:jooq-
meta:jar:3.7.1, org.jooq:jooq-codegen:jar:3.7.1: Failure to find
org.jooq:jooq:jar:3.7.1 in http://artifactory.foo.com/artifactory/all-repos was
cached in the local repository, resolution will not be reattempted until the
update interval of foo-artifactory-as-mirror has elapsed or updates are forced ->
[Help 1]
我可以在我的机器上配置 Maven,以便它首先在组织 Maven 存储库中查找 jar,如果在那里找不到它,然后查看 Maven 中心?
最佳答案
最理想的结果可能是让他们添加任何其他存储库服务器作为代理服务器。
Overview
In corporate environments it is often required to go through a proxy server to access remote resources.
Artifactory supports several types of network proxy including NTLMv2.
这就是我们的工作环境和构建脚本设置的方式,它使我们的构建脚本保持干净并且只列出一个远程存储库。
关于java - 使用 Maven Central 作为辅助存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33771747/