我使用的是cobertura,当我指定版本2.5时,它会下载1.9。为什么?
我的pom:org.codehaus.mojocobertura-maven插件2.5.2za/co/c2d/*/.class清洁的现场前清洁的仪器地点仪器cobertura
<reporting>
<plugins>
<plugin>
<!-- use mvn cobertura:cobertura to generate cobertura reports -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
</plugins>
</reporting>
输出:[信息]-cobertura-maven插件:2.5.2:instrument(默认cli)@services---正在下载:http://repo1.maven.org/maven2/net/sourceforge/cobertura/cobertura/1.9.4.1/cobertura-1.9.4.1.pom
当我运行这个时,它就会崩溃[错误]net.sourceforge.cobertura.javancss.parser.ParseException:遇到">">"
据我所知,这是在2.0.2版本中修复的。
当然不能-不能在括号内指定版本。。。你能详细解释一下项目层次结构吗?还有你完整的pom.xml?
这是因为您正在指定cobertura-maven插件的版本,它与cobertura-包不同
插件2.5.2在内部使用cobertura版本1.9.4.1,如中所述http://mojo.codehaus.org/cobertura-maven-plugin/