我正在使用 Ivy 进行依赖管理。
我有问题
- maven-findbgs-插件:插件:1.3.1
- maven-cobertura-插件:插件:1.3
有几个关于这个的主题:例如Maven Dependencies can't be resolve
答案是排除 jaxen:
<dependency org="org.jdom" name="jdom" rev="2.0.2">
<exclude module="jaxen"/>
</dependency>
我试图排除这些依赖项,但又遇到了另一个问题:
unresolved dependency: asm#asm;2.0: java.text.ParseException: inconsistent module descriptor file found in 'http://repo1.maven.org/maven2/asm/asm/2.0/asm-2.0.pom': bad revision: expected='2.0' found='@product.version@';
这是 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="organisation"
module="module"
status="integration">
</info>
<dependencies>
<dependency org="dom4j" name="dom4j" rev="1.6.1"/>
<dependency org="org.jdom" name="jdom" rev="2.0.2">
<exclude module="jaxen"/>
</dependency>
<dependency org="org.apache.poi" name="poi" rev="3.8"/>
<dependency org="org.apache.poi" name="poi-ooxml" rev="3.8"/>
<dependency org="org.apache.poi" name="ooxml-schemas" rev="1.1"/>
<dependency org="junit" name="junit" rev="4.10"/>
<dependency org="org.mockito" name="mockito-all" rev="1.9.0"/>
<dependency org="maven-plugins" name="maven-cobertura-plugin" rev="1.1" />
</dependencies>
</ivy-module>
我该怎么办?