Maven-在替代存储库(而不是Maven central)中找到的插件的正确版本:如何强制它?
我正在尝试获取org.jfrog.buildinfo:artifactorymaven插件:2.6.1,可以在中找到 但是由于Maven Central中有相同工件的2.2.1版本,所以解析总是失败Maven-在替代存储库(而不是Maven central)中找到的插件的正确版本:如何强制它?,maven,Maven,我正在尝试获取org.jfrog.buildinfo:artifactorymaven插件:2.6.1,可以在中找到 但是由于Maven Central中有相同工件的2.2.1版本,所以解析总是失败 « Failure to find org.jfrog.buildinfo:artifactory-maven-plugin:jar:2.6.1 in https://repo.maven.apache.org/maven2 » 我尝试在pom.xml中重新排序存储库部分,但没有成功 有线索吗 谢
« Failure to find org.jfrog.buildinfo:artifactory-maven-plugin:jar:2.6.1 in https://repo.maven.apache.org/maven2 »
我尝试在pom.xml中重新排序存储库部分,但没有成功
有线索吗
谢谢
编辑:我正在寻找一个插件
artifactorymaven插件
(jar和pom.xml
)下载到本地磁盘mvn安装:安装文件-Dfile=
-DpomFile=
repositories
而不是pluginRepositories
这:
jcenter
https://jcenter.bintray.com
与此相反:
<pluginRepositories>
<!-- yes! -->
<pluginRepository>
<id>jcenter</id>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
jcenter
https://jcenter.bintray.com
当然,当我试图获得一个插件时,我应该使用
pluginRepository
请添加您的pom.xml和plugins部分抱歉,我忘了说我在寻找一个插件,而不是依赖项。我知道我可以做类似的事情,但这意味着我必须在所有开发人员的计算机上做,还有CI…为了避免这种情况(以及其他原因),在LAN/Intranet中使用存储库管理器是很有帮助的,比如,或者感谢@JimHawkins,我采纳了您的建议,安装了artifactory来集中存储库设置,并添加内部依赖项。
<pluginRepositories>
<!-- yes! -->
<pluginRepository>
<id>jcenter</id>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>