我在同一个项目中使用json模式验证器和番石榴。当我试图更新任何一个时,都会出现查找错误的冲突,因此省略了一个lib。
工作版本如下:
两者都依赖于findbug 1.3.9
我想使用的版本:
这里,json验证器需要findbug (jsr305) 2.0.1,番石榴需要findbug 1.3.9。有办法解决这个问题吗?我的意思是我可以在我的项目中使用json模式验证器版本2.2.1和番石榴16.0.1。
样本文件:
build.xml
<project name="example" default="download"
xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="download" description="resolve dependencies with ivy">
<ivy:resolve />
<ivy:retrieve sync="true" type="jar"/>
</target>
</project>ivy.xml,工作
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="example" module="example" status="integration">
</info>
<dependencies>
<dependency org="com.github.fge" name="json-schema-validator" rev="2.0.0" />
<dependency org="com.google.guava" name="guava" rev="13.0.1" />
</dependencies>
</ivy-module>ivy.xml,不工作
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="example" module="example" status="integration">
</info>
<dependencies>
<dependency org="com.github.fge" name="json-schema-validator" rev="2.2.1" />
<dependency org="com.google.guava" name="guava" rev="16.0.1" />
</dependencies>
</ivy-module>驱逐通知:
[ivy:resolve] :: evicted modules:
[ivy:resolve] com.google.code.findbugs#jsr305;1.3.9 by [com.google.code.findbugs#jsr305;2.0.1] in [default]发布于 2014-04-28 20:15:05
@Julien谢谢您的提示,根据示例,我将检索行更改为
<ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>现在起作用了。
https://stackoverflow.com/questions/23135432
复制相似问题