我有以下常春藤文件:
<configurations defaultconfmapping="buildtime">
<conf name="buildtime" visibility="private" description="Libraries needed only for compilation" />
<conf name="runtime" description="Libraries only needed at runtime" />
<conf name="test" description="Libraries only needed for testing" />
</configurations>
<dependencies>
<dependency org="net.java.dev" name="jvyaml" rev="0.2.1" conf="runtime" />
<dependency org="org.apache.solr" name="solr-core" rev="3.6.0" conf="runtime" />
</dependencies>
我有一个看起来像这样的蚂蚁检索任务:
<target name="retrieve-all" depends="resolve">
<ivy:retrieve pattern="lib/[conf]/[artifact]-[revision].[ext]" conf="*" />
</target>
奇怪的是,所有的 solr 依赖项都像我所期望的那样下载到 lib/runtime 中,但 jvyaml 模块却没有!它“解决”,但不会下载到 lib/runtime 目录,除非我将依赖项声明更改为:
<dependency org="net.java.dev" name="jvyaml" rev="0.2.1" conf="runtime->master" />
这个主配置是什么,为什么需要拉 jvyaml jar,而不是 solr?
谢谢