【发布时间】:2012-11-27 10:41:42
【问题描述】:
我正在使用 ivy,我工作的公司有一些有趣的小 ivy 和 ant 教程。
每个教程都完全在依赖项部分使用时绕过箭头在 ivy 构建 xml 文件中的作用。
因此,鉴于此设置:
<configurations>
<conf name = "runtime" />
<conf name = "build-tests" extends="runtime" />
</configurations>
...
<dependencies>
...
<dependency org="blah" name="junit" rev="default" conf="build-tests->runtime"/>
<dependency org="blahblah" name="xmlutil" rev="default" conf="build-tests->testing"/>
<dependency org="blahblahblah" name="slf4j" rev="default" conf="build-tests->simple"/>
</dependencies>
每个依赖项声明了什么?我认为 build-tests 已经在扩展运行时(来自配置声明),那么为什么依赖项 conf 重述了这一点?需要吗?
testing 和 simple 没有在我拥有的 ivy.xml 中声明,它们是不是很神奇并且存在于正式声明之外?
谢谢!
【问题讨论】:
标签: ivy