我在Ivy->Resolve
安装了 IvyDE 的 Eclipse IDE 中运行时遇到问题。同时,蚂蚁目标
<target name="retrieve" unless="library.installed" description="Retrieves the libraries if needed">
<!-- Ivy configuration - http://ant.apache.org/ivy/history/trunk/ant.html -->
<ivy:settings file="ivysettings.xml"/>
<condition property="ivy.conf.name" value="java6">
<not>
<isset property="ivy.conf.name"/>
</not>
</condition>
<echo message="Ivy conf name: ${ivy.conf.name}"/>
<ivy:resolve file="ivy.xml" conf="${ivy.conf.name}" checkIfChanged="false" transitive="false" />
<ivy:retrieve conf="${ivy.conf.name}"/>
</target>
运行正常,没有任何错误。它将所有需要的 jar 下载到我的个人资料文件夹 .ivy2
如何让 Eclipse 使用它?我在包资源管理器中看不到ivy.xml[*]
节点,而ivy.xml[*]
构建路径配置对话框中的条目存在但为空。
如何将 IvyDE 指向外部 Ivy 下载的 jars?
编辑 1
我的问题是 IvyDE 不能正常工作。它要么挂起,要么导致错误消息。但永远不能正常工作。我正在做的是试图解决这个问题。
所以你的描述很好,但它们适用于正常工作的常春藤。