[英]Artifactory 3rd party jar
I've added a 3rd party jar into my artifactory (libs-release repos, and its the microsoft jdbc 4 connector). 我已将第3方jar添加到我的工件中(libs-release存储库及其Microsoft jdbc 4连接器)。
The problem i have is that maven/apache servicemix fail to download the jar as they have the following setup, and it seems like they always attempt to download stuff from the remote-repos first. 我遇到的问题是,由于maven / apache servicemix无法安装jar,因为它们具有以下设置,并且似乎他们总是总是尝试首先从远程存储库下载内容。
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>remote-repos</name>
<url>http://...:8081/artifactory/remote-repos</url>
<id>remote-repos</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://...:8081/artifactory/libs-release</url>
</repository>
<repository>
<snapshots/>
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://...:8081/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://...:8081/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots/>
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://...:8081/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
Any ideas whats wrong/how i can fix this? 任何想法出什么事了/我该如何解决? A temp fix is to install the jar into my local repos, but i dont want to do that on other work pcs.
临时解决方法是将jar安装到我的本地存储库中,但是我不想在其他工作PC上执行此操作。
Cheers. 干杯。
'remote-repos' repository in Artifactory is a virtual repository which aggregates, well, remote repositories :) Since you added your jar to your local repository, it can't be resolved from 'remote-repos'. Artifactory中的'remote-repos'存储库是一个虚拟存储库,它聚集了远程存储库:)由于您将jar添加到本地存储库中,因此无法通过'remote-repos'进行解析。 Pointing your mirror-any to 'repo' should do the job.
将您的镜像任何人指向“回购”就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.