2010-05-31 5 views
-1

개정 번호가없는 특정 jar 파일이 있습니다. 그러나 ivy 종속성에 대한 rev 속성은 필수 속성이므로 개정 속성을 제공하고 있습니다. 하지만 URL 확인자 (-[revision])와 같은 것이 있습니다.
하지만 리비전 속성을 무시하는 대신 모듈 번호를 사용합니다. null이 아닌 리비전 속성을 무시하지 않을 것이라는 것을 알고 있습니다. 아이비 개정 번호를 무시하는 법?

다음

내가 개정 내가 지정한 개정 등의 촬영 module.ext이 latest.integration하고 myrepo에 1, 2 개정 속성을 가지고 있겠지 이유를 누군가가 설명해 주시겠습니까
default-cache: no cached resolved revision for perltools#perltools;latest.integration 
[ivy:retrieve]  tried httP://myrepo/ivyRepository/perltools/jars/[revision]/perltools-[revision].jar 
[ivy:retrieve] listing all in httP://myrepo/ivyRepository/perltools/jars/[revision]/perltools-[revision].jar 
[ivy:retrieve] using privateRepo to list all in httP://myrepo/ivyRepository/perltools/jars/ 
[ivy:retrieve] ApacheURLLister found URL=[httP://myrepo/ivyRepository/perltools/jars/perltools.jar]. 
[ivy:retrieve]  found 1 resources 
[ivy:retrieve] found revs: [perltools.jar] 
[ivy:retrieve] HTTP response status: 404 url=httP://myrepo/ivyRepository/perltools/jars/perltools.jar/perltools-perltools.jar.jar 
[ivy:retrieve] CLIENT ERROR: Not Found url=httP://myrepo/ivyRepository/perltools/jars/perltools.jar/perltools-perltools.jar.jar 

를 얻을 출력입니다.

그냥 내가 개정 속성을 피할 수 있도록

[http://myrepo/ivyRepository/perltools/jars//perltools.jar] 

누군가가 나를 도와주세요 수있다?

+0

자세한 내용을 입력해야합니다. 예를 들어, ivysettings 파일에서 리졸버를 어떻게 구성했는지. –

+0

개정 번호 사용을 피하는 이유가 확실하지 않습니다. Ivy의 목적은 arifact의 개정 번호를 기반으로 종속성 관리를 수행하는 것입니다 :-) –

답변

0

리비전을 무시하고 젠킨스 서버에서 ZIP를 다운로드하기 위해, I는

<dependency org="source-build" name="project" rev="+"> 
    <artifact name="project" type="zip" /> 
</dependency> 

<url name="jenkins" m2compatible="true" checksums=""> 
    <artifact pattern="http://jenkins:8080/job/[organization]/ws/sources/[module]/*[ext]*/[artifact].[ext]" /> 
</url> 

등 (ivysettings.xml)에 리졸버와 (ivy.xml)에 종속 사용 그래서 나는 latest.release이 올바르게 해석되지 않고 빈 문자열 (rev="")이 작동했지만 싫어하는 로컬 캐시에 아티팩트가 남겨져 수정본에 +을 사용하고 있습니다.

bug in Ivy 때문에 해결 프로그램 정의에서 체크섬을 사용하지 않도록 설정해야한다는 점에 유의하십시오.

0

수정본으로 "latest.integration"을 사용할 수 있습니까?

관련 문제