我正在使用 cobertura,当我指定 2.5 版本时,它会下载 1.9。为什么?
我的 pom:org.codehaus.mojo cobertura-maven-plugin 2.5.2 za/co/c2d/* /.class clean pre-site clean instrument 现场仪器 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>
输出:[INFO] --- cobertura-maven-plugin:2.5.2:instrument (default-cli) @ services --- 下载:http ://repo1.maven.org/maven2/net/sourceforge/cobertura/cobertura /1.9.4.1/cobertura-1.9.4.1.pom
当我运行它时,它会中断 [ERROR] net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " ">" "> ""
据我了解,这已在 2.0.2 版中修复。