плющ и артефакты, разрешающие сбой

Возникла небольшая проблема с плющом, артефактами и весенним репозиторием. Я пытался использовать:

<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 нет pom или чего-то еще. Как мне заставить плющ (или, может быть, артефактный?) Правильно работать с репозиторием Spring Maven? Я предполагаю, что репозиторий spring просто не совместим с m2, хотя я пытался установить для этого параметра ibiblio значение false.

Спасибо!


person ticktock    schedule 27.09.2013    source источник
comment
Кажется, это проблема развертывания. spring-ldap не удалось доставить poms и т. д. Откат до 1.3.1 работает нормально.   -  person ticktock    schedule 28.09.2013


Ответы (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"/>
person Mark O'Connor    schedule 27.09.2013
comment
Спасибо. домен «xxx» был просто тем, что я вычеркнул название своей компании. У нас есть локальный артефакт, так что да, мне нужен локальный файл настроек. Спасибо за помощь! - person ticktock; 20.11.2013