2013-09-27 153 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