IVY - Set the default transitive value

ぃ、小莉子 提交于 2019-12-05 15:24:53

I'm assuming that you don't want ivy to download the transient dependencies of a dependency declaration in your ivy.xml file?

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 a Maven repository then mapping the default configuration to the master scope will omit other dependencies

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

Option 3: Don't use information in POM files (ivysettings.xml)

When downloading from a maven repository setting the usepoms parameter to false will ignore the module's dependencies

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

If you want to set transitive statements in your ant-task (your question really isn't that clear on this), you can use the transitive switch directly (default is "true"):

<ivy:resolve ... transitive="false" />
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!