【问题标题】:ivy and artifactory resolving failure常春藤和人工制品解决失败
【发布时间】:2013-10-04 04:52:30
【问题描述】:

对 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?我猜 spring repo 根本不兼容 m2,尽管我已经尝试将 ibiblio 设置标记为 false。

谢谢!

【问题讨论】:

  • 似乎是部署问题.. spring-ldap 无法交付 pom 等。退回到 1.3.1 工作正常。

标签: ivy artifactory spring-ldap


【解决方案1】:

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

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

坏消息是没有 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"/>

【讨论】:

  • 谢谢。 'xxx' 域只是我 x'ing 出我的公司名称。我们有一个本地工件设置,所以是的,我确实需要本地设置文件。感谢您的帮助!
猜你喜欢
  • 1970-01-01
  • 2014-01-06
  • 2013-05-31
  • 2011-02-15
  • 2011-02-14
  • 2015-10-28
  • 2018-03-24
  • 1970-01-01
相关资源
最近更新 更多