【问题标题】:what does the little arrow -> do in the ivy dependency section?ivy 依赖部分中的小箭头 -> 做什么?
【发布时间】: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 重述了这一点?需要吗?

testingsimple 没有在我拥有的 ivy.xml 中声明,它们是不是很神奇并且存在于正式声明之外?

谢谢!

【问题讨论】:

    标签: ivy


    【解决方案1】:

    配置映射旨在将本地声明的配置与远程模块中声明的配置相关联。

       mylocalconf->remotemoduleconf
    

    什么是配置?它们是文件的逻辑分组,通常用于填充类路径或目录。

    “simple”和“testing”不是standard configurations generated for remote maven modules 的一部分,这表明您是从常春藤仓库下载的?检查依赖项的 ivy 文件,你会发现那里缺少的配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-13
      • 2011-11-13
      • 1970-01-01
      • 2014-05-13
      • 2021-12-07
      • 2011-08-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多