Given:
<dependency org="foo" name="bar" />
and no configurations, following ant snippet:
<echo>${ivy.configuration}</echo>
<ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="${build.dir}/${ivy.module}.pom">
<mapping conf="default" scope="compile" />
</ivy:makepom>
Produces pom with with optional dependency on foo.bar and prints "default".
If I change mapping to conf="*"
then it works but it is obviously suboptimal.
Is it possible to map unspecified default configuration or do I need to set conf="default" on all dependencies in ivy.xml ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…