How IvyDE can coexist with command-line Ant and Iv

2019-07-25 17:28发布

问题:

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