How IvyDE can coexist with command-line Ant and Iv

2019-07-25 16:57发布

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.

2条回答
姐就是有狂的资本
2楼-- · 2019-07-25 17:24

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

查看更多
萌系小妹纸
3楼-- · 2019-07-25 17:37

1. Add the Eclipse Library

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

enter image description here

2. select the ivy.xml

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

enter image description here

3. Configure additional settings

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

enter image description here

查看更多
登录 后发表回答