How do I solve Multiple artifacts of the module X are retrieved to the same file in Apache Ivy?

后端 未结 1 1475
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 18:11

I was using ANT to deploy my stuff to Tomcat. But I had trouble with missing dependencies and I wanted to add Ivy, cause it was reccomended.

Now I added this to my b

相关标签:
1条回答
  • 2020-12-15 18:58

    You have to expand your pattern to include the type, so that each artifact gets it's own local file:

    <ivy:retrieve pattern="lib/[conf]/[artifact]-[type]-[revision].[ext]" />
    

    Or if you don't need the sources and the javadoc you can change the dependency to:

    <ivy-module version="2.0">
        <info organisation="org.apache" module="hello-ivy"/>
        <dependencies>
            <dependency org="commons-lang" name="commons-lang" rev="2.1" conf="default->master"/>
        </dependencies>
    </ivy-module>
    

    Which will only retrieve the master-conf(jar) of the dependency.

    0 讨论(0)
提交回复
热议问题