当使用Ivy严格冲突管理器时,包与self冲突

时间:2012-02-01 02:41:10

标签: dependencies conflict ivy strict

我正在使用Ivy 2.2进行依赖关系管理。使用严格的冲突管理器,我收到以下错误消息:

::问题摘要:: ::::错误         myorg#myteam.PackOne; 1.1.0.308([myorg#myteam.DL; 2.0.0.210]需要)与myorg#myteam.PackOne; 1.1.0.308冲突([myorg#myteam.IGrid需要;工作@MKTDEVPC3070])

有人可以帮忙解释一下吗?调试选项无助于解释它。我错过了什么?

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" xmlns:e="http://ant.apache.org/ivy/extra">
  <info organisation="myorg" module="myteam.DL" e:major="2.0.0"/>
  <configurations>
    <conf name="runtime"/>
    <conf name="test" extends="runtime"/>
    <conf name="build" extends="test"/>
  </configurations>
  <publications>
    <artifact name="myteam.DL" type="dll" ext="zip"  conf="*"/>
  </publications>
  <dependencies>
    <dependency org="myorg" name="DependencyLanguage" rev="1.4.+" conf="runtime->default"/>
    <dependency org="myorg" name="myteam.Shade" rev="1.1.+" conf="runtime"/>
    <dependency org="apache" name="log4net" rev="1.2.+" conf="runtime->default"/>
    <dependency org="nunit" name="nunit" rev="2.5.+" conf="test->default"/> 
    <dependency org="CodePlex" name="MSBuildExtensionPack" rev="4.0.+"  conf="build->default"/>
  </dependencies>
</ivy-module>

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" xmlns:e="http://ant.apache.org/ivy/extra">
  <info organisation="myorg" module="myteam.DL" e:major="2.0.0"/>
<configurations>
    <conf name="runtime"/>
    <conf name="test" extends="runtime"/>
    <conf name="build" extends="test"/>
</configurations>
<publications>
    <artifact name="myteam.DL" type="dll" ext="zip"  conf="*"/>
</publications>
<dependencies>
    <dependency org="myorg" name="DependencyLanguage" rev="1.4.+" conf="runtime->default"/>
    <dependency org="myorg" name="myteam.Shade" rev="1.1.+" conf="runtime"/>
    <dependency org="apache" name="log4net" rev="1.2.+" conf="runtime->default"/>
    <dependency org="nunit" name="nunit" rev="2.5.+" conf="test->default"/> 
    <dependency org="CodePlex" name="MSBuildExtensionPack" rev="4.0.+"  conf="build->default"/>
</dependencies>
</ivy-module>

1 个答案:

答案 0 :(得分:0)

这绝对不是一个BUG。 &#34;严格&#34;如果发现冲突,冲突管理器会抛出构建错误。改变冲突经理,你应该没事。 以下是列出行为的文档: http://ant.apache.org/ivy/history/2.0.0/settings/conflict-managers.html

  

严格 - 此冲突管理器抛出异常(即导致构建   失败)每当发现冲突时。