【发布时间】:2013-10-09 21:36:01
【问题描述】:
这是我的 build.xml 的一部分
<property name="dir.ivy" value="${user.home}/.ivy2" description="Local Ivy Repository" />
<target name="retrieve" depends="clean,init">
<!-- Resolve dependencies -->
<ivy:resolve file="ivy.xml"/>
<ivy:retrieve type="jar" conf="${ivy.configuration}" pattern="${dir.ivy}/[artifact]-[revision].[ext]"/>
<!-- Update classpath -->
???
</target>
在我从 artifactory 或 maven 下载了在我的 ivy.xml 中定义的依赖项后,我想将它们添加到我的项目类路径中,而不需要从项目手动添加它们 - 配置构建路径......并且不编译我的类。
有什么想法吗?
【问题讨论】:
标签: ant build classpath ivy artifactory