0

ivy、artifactory 和 spring repo 有一个小问题。我试图使用:

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

但是,我遇到了错误(ant publish -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 没有版本 1.3.2 并且 spring maven repo 没有 pom 或任何东西。我如何让常春藤(或者可能是人工制品?)正确处理 spring maven repo?我猜春天 repo 根本不兼容 m2,尽管我已经尝试将 ibiblio 设置标记为 false 。

谢谢!

4

1 回答 1

1

您已将设置文件配置为从不存在的“xxx.com”域下载。

好消息是您根本不需要设置文件,默认情况下 ivy 将从Maven 中央存储库下载。

坏消息是没有 1.3.2.RELEASE 版本的 spring-ldap 神器:

以下常春藤文件有效:

  <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"/>
于 2013-09-27T22:01:58.743 回答