简体   繁体   English

在rev中使用+到ivy.xml中不起作用

[英]Using + in rev into ivy.xml is not working

Working with Ivy to manage all my dependencies in my project and then whenever I add + (plus) in rev attribute into ivy.xml is not working. 与Ivy一起管理项目中的所有依存关系,然后每当我在rev属性中向ivy.xml中添加+(加号)时都无法正常工作。

<dependency org="com.*****.*********" name="im-framework" rev="0.0.1+">
   <artifact name="im-framework-main" type="jar" conf="compile->compile" />
   <artifact name="im-framework-test" type="jar" conf="test->default" />
   <exclude name="log4j-over-slf4j" />
</dependency>

Error message: 错误信息:

Description Resource    Path    Location    Type
Impossible to resolve dependencies of com.*****.*******#im-web;0.0.1    ivy.xml    /Project Unknown Problem

When I remove it and add the version number it is working fine. 当我删除它并添加版本号时,它工作正常。

Could someone help me? 有人可以帮我吗?

I think the problem is that you are using dynamic revision here. 我认为问题在于您在这里使用动态修订。 Take a look at this: http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html 看一下这个: http : //ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html

我通过右键单击项目->属性-> Java构建路径->添加库-> IvyDE托管依赖项,添加了另一个Ivy.xml [*]库,它运行良好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM