Peter
Peter

Reputation: 1057

deleting jars from ivy resolved libraries

I have two jars that conflict in my libraries in the java build path. Both of them are resolved by ivy, so I see them inside an ivy.xml entry on the libraries tab. I can't delete anything inside the ivy.xml entry, eclipse only lets me delete the entire entry. Deleting the jar from the source folder is'nt viable either, since I don't have the access rights for that.

Could you give me some advice on how to solve this conflict?

Thanks for your time.

Upvotes: 0

Views: 1493

Answers (1)

agad
agad

Reputation: 2189

Use exclude in your ivy file, eg.:

    <dependency org="log4j" name="log4j" rev="1.2.17" conf="default" >
        <exclude module="javaee-api"/>
        <exclude module="geronimo-jms_1.1_spec"/>
    </dependency>

You can use following ant task to create dependency report:

<target name="report" >
    <delete dir="report"/>
    <mkdir dir="report" />
    <ivy:resolve type="${ivy.resolve.types}"/>
    <ivy:report todir="report" />
</target>

Upvotes: 3

Related Questions