0

Am a beginner in Ant+Ivy . So any help is appreciated. In my ivy.xml, I have listed the dependency section and the jar I need to build.

<dependency org="org.xxx" name="abc" rev="1.0.0"  transitive="false"/>

This downloads abc.jar. But the problem is abc.jar is dependent on 50 other jar files to work. So how can I download them all ?

Thanks

user1164061
  • 4,222
  • 13
  • 48
  • 74

1 Answers1

0

You have set the transitive flag to false, telling ivy not to download dependencies.

Try this instead:

<dependency org="org.xxx" name="abc" rev="1.0.0" conf="default"/>

See related answer:

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185
  • before I received your answer, I tried with transitive="true" - It didnt work; Now I tried your answer and that didnt work either. Earlier, this abc.jar and its 50 dependencies were on one shared folder and my project was pulling from share and it worked fine. Now I put abc.jar on Nexus and trying to download through ivy but my project fails because it is not getting its dependencies of abc.jar. Should I explicitly list all of them in my ivy.xml to download the dependencies of dependency? – user1164061 Aug 13 '15 at 16:07
  • @user1164061 Try the configuration mapping "default->*". Perhaps the dependencies are scoped as either test or optional. – Mark O'Connor Aug 14 '15 at 00:15
  • Really appreciate your answer with multiple options to try. This didnt solve my problem though. So I am going to explicitly list all of them. Thanks. – user1164061 Aug 14 '15 at 20:59