http://repo2.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/
一问:
Can anyone tell me to locate and download the cobertura maven plugin? I've looked on the web. On the Corbertura homepage there is a URL http://maven-plugins.sourceforge.net/repository/maven-plugins/ to the download, but that page is dead.
一答:
The Cobertura plugin for Maven can be downloaded from the Maven central repository, however you shouldn't need to download the plugin directly, it is sufficient to declare the plugin in your POM, Maven will download it automatically from the central repository (assuming you have an internet connection).
The configuration would be something like this:
<reporting>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</reporting>
Cobertura Maven 插件
本文介绍如何配置 Cobertura Maven 插件以实现代码覆盖率报告的自动化生成。通过在项目的 POM 文件中声明插件,Maven 会自动从中央仓库下载所需的插件版本。
28万+

被折叠的 条评论
为什么被折叠?



