IvyDE如何与命令行Ant和Ivy共存? [英] How IvyDE can coexist with command-line Ant and Ivy?

查看:101
本文介绍了IvyDE如何与命令行Ant和Ivy共存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装IvyDE的情况下从Eclipse IDE运行Ivy->Resolve时遇到问题.同时,蚂蚁目标

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>

运行正常,没有任何错误.它将所有必需的jar下载到我的个人资料文件夹.ivy2

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

如何使Eclipse使用它?当构建路径"配置对话框中的"ivy.xml[*]"条目存在但为空时,我在软件包资源管理器中没有看到"ivy.xml[*]"节点.

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.

如何将IvyDE指向外部Ivy下载的jar?

How to point IvyDE to jars downloaded by external Ivy?

编辑1

我的问题是IvyDE无法正常工作.它挂起或导致错误消息.但是永远无法正常工作.我正在做的就是试图解决问题.

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.添加Eclipse库

在您的项目属性的库部分中,点击添加库"并选择"IvyDE托管依赖项"

1. Add the Eclipse Library

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

选择项目的ivy.xml并选择适当的配置(所有将首先进行)

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

如果您有特殊的ivysettings.xml,则可以在设置页面"上选择它.

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

这篇关于IvyDE如何与命令行Ant和Ivy共存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆