【问题标题】:Ivy: configuration doesn't exist常春藤:配置不存在
【发布时间】:2015-06-08 12:42:56
【问题描述】:

当尝试使 Ivy 依赖项成为配置的一部分时,通过将属性 conf="widget->default" 添加到 dependency 声明中,我收到错误:

解析 ivy 文件时出现问题:无法将依赖项 'com.acme.widget#widget;1.2.3' 添加到模块 org.foo#bar;working@localhost.localdomain 的配置 'widget' 中,因为此配置没有存在!

【问题讨论】:

    标签: java ant ivy


    【解决方案1】:

    每个配置都必须在声明依赖项的同一 Ivy 模块文件的 configurations 部分中显式声明。例如:

    <configurations>
        <conf name="widget" description="widget JAR files"/>
    </configurations>
    

    请参阅Ivy documetntation 和example ivy.xml file from the Ivy tutorial 了解更多详情。

    【讨论】:

      猜你喜欢
      • 2010-11-12
      • 2011-10-26
      • 2011-10-28
      • 2011-04-12
      • 2010-12-30
      • 2011-02-24
      • 2018-07-07
      • 1970-01-01
      相关资源
      最近更新 更多