-->

在Eclipse中映射多个ivy文件(mapping multiple ivy files in E

2019-10-17 08:21发布

目前,我正在改变我的Eclipse构建常春藤路径。

我还通过具有找回我的依赖性装2个常青藤文件成功修改我的ANT构建:

在我的portlet构建文件,我专门打电话公共依赖于所有这些使我不能确定在每一个Portlet项目相同librairies小门户:

    <if>
        <available file="${rpm.homedir}/Builder/ivy_portlet.xml" />
        <then>
            <echo message="Getting runtime portlet dependencies using Ivy project's configuration" />
            <ivy:resolve file="${rpm.homedir}/Builder/ivy_portlet.xml"/>
            <ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${rpm.homedir}/Builder/ivy_portlet.xml"/>
        </then>
        <else>
            <fail message=" file ${rpm.homedir}/Builder/ivy_portlet.xml not found in the builded project." />
        </else>
    </if>

下面是从build.xml文件片段的所有我的项目的代码:

<target name="get-dependencies">
    <if>
        <available file="${basedir}/ivy.xml" />
        <then>
            <echo message="Getting deps using Ivy project's configuration" />
            <ivy:resolve file="${basedir}/ivy.xml"/>
            <ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${basedir}/ivy.xml"/>
        </then>
        <else>
            <fail message=" file ${basedir}/ivy.xml not found in the builded project." />
        </else>
    </if>
</target>

一切都正常运行与ANT。

如何设置,使用IvyIDE插件,位于另一个项目我一般常青藤文件?

Answer 1:

使用ivy延伸http://ant.apache.org/ivy/history/latest-milestone/ivyfile/extends.html

马克说,不创建一个问题,然后尝试去解决它。 可以使用延伸到使用其它常春藤portlet.xml中[其本身驻留在模块中]与extendType =“depenencies”

使用每个项目和IvyDE和常春藤文档,一会在你身边。 试图操纵和你将独自发现自己。



文章来源: mapping multiple ivy files in Eclipse