Netbeans 웹 앱 프로젝트에 Apache Ivy를 통합하려고합니다. 이것은 nbprojects.project.properties
파일에 ivy.classpath
을 업데이트하지만 난 얻을 수있는 빌드의 WEB-INF/lib
폴더를 얻이 수없는 것, 이상하게Netbeans의 ivy 용 build.xml
<target name="-ivy-retrieve">
<ivy:retrieve/> <!-- Load dependencies to the project -->
<pathconvert property="ivy.classpath.computed" dirsep="/" pathsep=":">
<path>
<fileset dir="lib" includes="*.jar"/>
</path>
<map from="${basedir}${file.separator}" to=""/>
</pathconvert>
<propertyfile file="nbproject/project.properties">
<entry operation="=" key="ivy.classpath" value="${ivy.classpath.computed}"/>
</propertyfile>
</target>
<target name="-pre-compile" depends="-ivy-retrieve"/>
<target name="-pre-compile-single" depends="-ivy-retrieve"/>
<target name="-post-clean">
<delete dir="lib"/>
</target>
: 특히 http://wiki.netbeans.org/FaqIvy
:
내 build.xml
파일은 넷빈즈 자습서를 다음과 의존성으로 나열된 .jar
으로 채워집니다.
이상하게도 이전에이 작업을 수행하여 빌드 WEB-INF/lib
폴더를 채울 수 있었고 이제 종속성을 제거하면 같은 jar 파일이 빌드에 포함됩니다 (제거하지 않고).
build.xml
파일을 변경하는 방법에 대한 제안 사항이 있으십니까? 또는 Ivy를 성공적으로 빌드 프로세스에 통합 할 수있는 다른 것 (Ivy가 감지되었습니다. 빌드 중에 출력에서 "해결 보고서"및 "검색"참조). 내가 해봤
어떤 것들은 :
고려해야 할 또 다른 최적화는 ** retrieve ** 대신 ** cachpath ** 작업을 사용하는 것입니다. http://ant.apache.org/ivy/history/latest-milestone/use/cachepath.html –