How IvyDE can coexist with command-line Ant and Ivy?

徘徊边缘 提交于 2019-12-11 13:17:39

问题


I have problems running Ivy->Resolve from Eclipse IDE with IvyDE installed. Meanwhile, ant target

<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>

runs ok and without any errors. It downloads all required jar into my profile-located folder .ivy2

How to make Eclipse to use it? I see no ivy.xml[*] node in package explorer while ivy.xml[*] entry in Build Path configuration dialog exists but empty.

How to point IvyDE to jars downloaded by external Ivy?

EDIT 1

My problem it that IvyDE doesn't work correctly. It either hangs or cause error messages. But never works fine. What I am doing is trying to solve the problem.

So your descriptions are good, but they are for normal working Ivy.


回答1:


1. Add the Eclipse Library

In the Libraries-Section of your projects properties click "Add Library" and choose "IvyDE Managed Dependencies"

2. select the ivy.xml

Select the ivy.xml of your project and choose the appropriate configurations (all will do at first)

3. Configure additional settings

If you have a special ivysettings.xml you can select it on the "Settings Page".




回答2:


You need to right click on your ivy.xml and select "Add Ivy Library...".



来源:https://stackoverflow.com/questions/9979520/how-ivyde-can-coexist-with-command-line-ant-and-ivy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!