1

that's a part of my 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>

After i downloaded the dependencies, defined in my ivy.xml, from artifactory or maven i would like to add them to my project classpath without adding them manually from Project - Configure Build Path... and without compiling my classes.

Any ideas?

4

2 回答 2

1

缓存路径任务可用于创建常春藤托管类路径。

有关示例,请参见:

于 2013-10-03T21:54:31.550 回答
0

最后我找到了一个解决方案,我使用Apache IvyDE插件来更新项目类路径。

于 2014-01-15T08:03:47.360 回答