How to use Apache ivy to resolve dependency with multiple files?

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2010-03-07T05:29:11Z Indexed on 2010/03/13 10:15 UTC
Read the original article Hit count: 320

Filed under:
|
|

Here is my ivy.xml:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
...
<dependencies>
    <dependency org="spring" name="richclient" rev="1.1.0"/>
</dependencies>
</ivy-module>

And ivy-settings.xml:

<property name="ivy.local.default.root"             value="/home/---/dev/Java/_libraries/_ivy" override="false"/>
<property name="ivy.local.default.ivy.pattern"      value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" override="false"/>
<property name="ivy.local.default.artifact.pattern" value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" override="false"/>
<resolvers>
    <filesystem name="local">
        <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
        <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
    </filesystem>
</resolvers>

Ivy try to find /home/---/dev/Java/_libraries/_ivy/spring/richclient/1.1.0/jars/richclient.jar

And here is the problem. Library has 4 jar files.

How to include all jars in project from one dependency in ivy.xml?

Thx

© Stack Overflow or respective owner

Related posts about java

Related posts about ivy