Here's some previous answers on this topic:
- IVY - Set the default transitive value
- How to copy runtime libraries without the provided ones in IVY
The simplest solution is to add the transitive attribute to the dependency:
<dependency org="foo" name="bar" revision="3.0" transitive="false"/>
If you're using a Maven repository like Nexus, then a better solution is to use a configuration mapping
<dependency org="foo" name="bar" revision="3.0" conf="default->master"/>
Configurations in ivy are tough to understand, initially, but well worth the effort. I hope the following links help: