【发布时间】:2016-09-26 06:38:14
【问题描述】:
给定:
<dependency org="foo" name="bar" />
并且没有配置,跟随ant sn -p:
<echo>${ivy.configuration}</echo>
<ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="${build.dir}/${ivy.module}.pom">
<mapping conf="default" scope="compile" />
</ivy:makepom>
产生对 foo.bar 具有可选依赖的 pom 并打印“默认”。
如果我将映射更改为conf="*",那么它可以工作但它显然不是最理想的。
是否可以映射未指定的默认配置,或者我需要在 ivy.xml 中的所有依赖项上设置 conf="default" 吗?
【问题讨论】: