IVY - sets the default transitive value

How do you redefine the value of the transitive defula in IVY?

+4
source share
2 answers

I assume you do not want ivy to load the dependency declaration transient dependencies in ivy.xml?

Option 1: Transitive Parameter (ivy.xml)

<dependency org="foo" name="bar" revision="3.0" transitive="false"/> 

Option 2: configuration mapping (ivy.xml)

If the bar module is held in the Maven repository, then mapping the default configuration to the main area skips other dependencies

 <dependency org="foo" name="bar" revision="3.0" conf="default->master"/> 

Option 3: Do not use information in POM files (ivysettings.xml)

When loading from the maven repository setting, the usepoms parameter to false will ignore module dependencies

 <ibiblio name="maven" m2compatible="true" usepoms="false"/> 
+8
source

If you want to set transitive statements in your ant -task (your question is actually not that clear), you can use the transitive switch directly (the default is "true"):

 <ivy:resolve ... transitive="false" /> 
+2
source

All Articles