2012-07-05 110 views
0

我已经将第三方jar添加到我的artifactory(libs-release repos,及其microsoft jdbc 4连接器)中。Artifactory第三方jar

我遇到的问题是,maven/apache servicemix无法下载jar,因为他们有以下设置,而且他们似乎总是试图首先从remote-repos下载东西。

<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> 

任何想法什么是错/我是如何解决这一问题?临时解决方法是将jar安装到我的本地回购站中,但我不想在其他工作PC上执行此操作。

干杯。

回答

1

Artifactory中的'remote-repos'存储库是一个虚拟存储库,可以聚合远程存储库:)由于您已将jar添加到本地存储库,因此无法从'remote-repos'中解析。指出你的镜子 - 任何'回购'应该做的工作。

+1

干杯,固定它。 – 2012-09-27 08:45:03