2012-12-05 1 views

답변

0
<target name="resolve-init" description="Configure ivy settings"> 
    <mkdir dir="build"/> 

    <echoxml file="build/ivysettings.xml"> 
     <ivysettings> 
      <settings defaultResolver="central" /> 
      <resolvers> 
       <ibiblio name="central" m2compatible="true"/> 
      </resolvers> 
     </ivysettings> 
    </echoxml> 

    <ivy:settings file="build/ivysettings.xml"/> 
</target> 

<target name="resolve" depends="resolve-init" description="Use ivy to resolve dependencies"> 
    <ivy:resolve/> 
</target> 

다른 옵션은 ivy 설정 작업의 URL 속성을 사용하여 잘 알려진 위치 (예 : 회사 웹 서버)에 ivy 구성을 저장하는 것입니다.