2013-09-27 191 views
0

常春藤,artifactory和春季回購有一個小問題。我嘗試使用:常春藤和artifactory解決失敗

<dependency org="org.springframework.ldap"  name="spring-ldap-core" rev="1.3.2.RELEASE"   conf="compile->default"/> 
<dependency org="org.springframework.ldap"  name="spring-ldap"  rev="1.3.2.RELEASE"   conf="compile->default"/> 

常春藤設置:

<resolvers> 
    <filesystem name="local"> 
    <ivy pattern="${repository.dir}/[module]/ivy.xml" /> 
    <artifact pattern="${repository.dir}/[module]/[artifact].[ext]" /> 
    </filesystem> 
    <chain name="chain"> 
    <resolver ref="local"/> 
    <ibiblio name="artifactory-spring" m2compatible="true" root="http://artifactory.xxx.com:8081/artifactory/spring-release"/> 
    <ibiblio name="artifactory"  m2compatible="true" root="http://artifactory.xxx.com:8081/artifactory/repo1"/> 
    </chain> 
</resolvers> 

但是,我得到的錯誤(螞蟻發佈-verbose模式)

[ivy:cachepath] CLIENT ERROR: Not Found url=http://artifactory.xxx.com:8081/artifactory/spring-release/spring-ldap/jars/spring-ldap-1.3.2.RELEASE.jar 
[ivy:cachepath]  artifactory-spring: no ivy file nor artifact found for org.springframework.ldap#spring-ldap;1.3.2.RELEASE 
[ivy:cachepath]   tried http://artifactory.xxx.com:8081/artifactory/repo1/org/springframework/ldap/spring-ldap/1.3.2.RELEASE/spring-ldap-1.3.2.RELEASE.pom 
[ivy:cachepath] CLIENT ERROR: Not Found url=http://artifactory.xxx.com:8081/artifactory/repo1/org/springframework/ldap/spring-ldap/1.3.2.RELEASE/spring-ldap-1.3.2.RELEASE.pom 
[ivy:cachepath]   tried http://artifactory.xxx.com:8081/artifactory/repo1/org/springframework/ldap/spring-ldap/1.3.2.RELEASE/spring-ldap-1.3.2.RELEASE.jar 
[ivy:cachepath] CLIENT ERROR: Not Found url=http://artifactory.xxx.com:8081/artifactory/repo1/org/springframework/ldap/spring-ldap/1.3.2.RELEASE/spring-ldap-1.3.2.RELEASE.jar 

表明repo1沒有按」 t版本1.3.2和春天maven回購沒有pom或任何東西。我如何獲得常春藤(或者可能是artifactory?)來正確地處理spring maven回購?我猜春季回購根本不是m2compatible,儘管我試圖將ibiblio設置爲false。

謝謝!

+0

似乎是一個部署問題.. spring-ldap未能提供poms等Backi ng降至1.3.1可以正常工作。 – ticktock

回答

1

您已將您的設置文件配置爲從不存在的「xxx.com」域下載。

好消息是,根本不需要設置文件,默認情況下,常青藤將從Maven Central存儲庫下載。

壞消息是,有彈簧LDAP神器的無1.3.2.RELEASE版本:

下面的ivy文件的工作原理:

<dependency org="org.springframework.ldap"  name="spring-ldap-core" rev="1.3.2.RELEASE"   conf="compile->default"/> 
    <dependency org="org.springframework.ldap"  name="spring-ldap"  rev="1.3.1.RELEASE"   conf="compile->default"/> 
+0

謝謝。 'xxx'域名只是我的公司名稱。我們有一個本地設置文件,所以是的,我確實需要本地設置文件。謝謝您的幫助! – ticktock