2010-07-30 3 views

답변

1

~/.groovy/grapeConfig.xml ~ 파일이 정의되어 있습니까? doco에 주어진 예제는 로컬 캐시를 선호합니다.

<ivysettings> 
    <settings defaultResolver="downloadGrapes"/> 
    <resolvers> 
    <chain name="downloadGrapes"> 
     <filesystem name="cachedGrapes"> 
     <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/> 
     <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> 
     </filesystem> 
     <!-- todo add 'endorsed groovy extensions' resolver here --> 
     <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/> 
     <ibiblio name="ibiblio" m2compatible="true"/> 
     <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true"/> 
    </chain> 
    </resolvers> 
</ivysettings> 
+0

내 구성이 어떻게 생겼는지는 다른데 - 다른 저장소에 대한 몇 가지 'ibiblio'참조가 아래쪽에 있습니다. – dsummersl

+1

Groovy 스크립트에서 라이브러리의 최신 버전에 대한 종속성을 선언하셨습니까? 이 경우 Groovy는 새로운 것을 다운로드 할 것인지 결정하기 위해 인터넷을 점검 할 것입니다. 마지막으로 Groovy가 아무것도 다운로드하지 않도록 -Dgroovy.grape.autoDownload = false 속성을 설정할 수 있습니다 –

2

일부 라이브러리 (특히 httpbuilder)는 종속성에서 버전 범위를 사용합니다. graftonfig.xml 파일에서이 버전 검사를위한 TTL을 늘리는 방법을 설명하는 게시물 here이 있습니다.

관련 문제