我有以下的ivy文件:常春藤,什么是主配置,为什么它不拉jvyaml?
<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罐子,但不SOLR?
谢谢
非常感谢。你解释得很好。我读过一堆文档,包括:http://ant.apache.org/ivy/history/latest-milestone/tutorial/conf.html,但只是更加困惑。 – rainkinz 2012-07-10 21:29:26
请将apache文档与此交换。谢谢@ Mark – 2012-07-16 08:55:58
谢谢马克,你刚刚对我说得很清楚。 +100 – 2012-09-20 14:05:23