We are using ivy 2.2.0 with ant 1.8.2 on Windows XP. In the ivy.xml file of a module, I have the following configurations and dependencies:
<configurations> <conf name="compile"/> <conf name="test" extends="compile" /> <conf name="rad" /> <conf name="ear" /> <conf name="wsdl"/> </configurations> <dependencies defaultconfmapping="* -> #" defaultconf="*,!wsdl" > <dependency org="org1" name="mod1" conf="wsdl -> conf1" rev="latest.integration" /> <dependency org="org1" name="mod2" rev="latest.integration" /> </dependencies> mod1 and mod2 have the same configurations as the parent module above. In the build file, I do the following to resolve and retrieve the artifacts for this parent module: <ivy:resolve conf="ear" /> <ivy:retrieve pattern="${project.target.lib.dir}/[artifact].[ext]" sync="true" conf="ear"/> <ivy:report conf="ear" ... /> It seems that for modules such as mod2, I retrieve artifacts from all configurations (except the conf "wsdl") and not just the ear-configuration. The attribute "defaultconf" seems to be responsible for that. This can also be seen in the output of ivy:report. For mod2, I can see that it returns the following configurations: Configurations: test, compile, rad, ear, * I expected that if I resolve for configuration "ear" that I would only get the artifacts for configuration "ear", and that the defaulfconf-attribute is irrelevant for this operation. Is my assumption correct and is this a bug ? Or am I missing something with this defaultconf attribute. In that case, could somebody explain. I introduced the defaultconf attribute because not all our modules have the configuration wsdl which I defined recently (example mod2 above). Using defaultconf this way, removes the error when resolving for wsdl, but creates this side-effect for configuration "ear". Thanks, Marc -- View this message in context: http://old.nabble.com/defaultconf-attribute-in-dependencies-tp32044618p32044618.html Sent from the ivy-user mailing list archive at Nabble.com.