简体   繁体   English

IvyDE如何与命令行Ant和常春藤共存?

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

I have problems running Ivy->Resolve from Eclipse IDE with IvyDE installed. 我在运行Ivy->Resolve Eclipse IDE中运行Ivy->Resolve遇到问题。 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 它将所有必需的jar下载到我的profile-located文件夹.ivy2

How to make Eclipse to use it? 如何让Eclipse使用它? I see no ivy.xml[*] node in package explorer while ivy.xml[*] entry in Build Path configuration dialog exists but empty. 我在包浏览器中看不到ivy.xml[*]节点,而构建路径配置对话框中的ivy.xml[*]条目存在,但为空。

How to point IvyDE to jars downloaded by external Ivy? 如何将IvyDE指向外部常春藤下载的罐子?

EDIT 1 编辑1

My problem it that IvyDE doesn't work correctly. 我的问题是IvyDE无法正常工作。 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. Add the Eclipse Library 1.添加Eclipse库

In the Libraries-Section of your projects properties click "Add Library" and choose "IvyDE Managed Dependencies" 在项目属性的Libraries-Section中,单击“Add Library”并选择“IvyDE Managed Dependencies”

在此输入图像描述

2. select the ivy.xml 2.选择ivy.xml

Select the ivy.xml of your project and choose the appropriate configurations ( all will do at first) 选择项目的ivy.xml并选择适当的配置( 一切都会先做)

在此输入图像描述

3. Configure additional settings 3.配置其他设置

If you have a special ivysettings.xml you can select it on the "Settings Page". 如果你有一个特殊的ivysettings.xml,你可以在“设置页面”上选择它。

在此输入图像描述

您需要右键单击您的ivy.xml并选择“添加Ivy Library ...”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM