Maven2之 report常用plugin

1、findbugs-maven-plugin

      http://mojo.codehaus.org/findbugs-maven-plugin/

      FindBugs looks for bugs in Java programs. It is based on the concept of bug patterns.

 

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>findbugs-maven-plugin</artifactId>
	<version>2.3.1</version>
	<configuration>
		<xmlOutput>true</xmlOutput>
		<xmlOutputDirectory>target/site</xmlOutputDirectory>
	</configuration>
</plugin>

 

 

2、cobertura-maven-plugin

      http://mojo.codehaus.org/cobertura-maven-plugin/

      The report generated by this plugin is the result of executing the Cobertura tool against your compiled classes to help you determine how well the unit testing efforts have been, and can then be used to identify which parts of your Java program are lacking test coverage.

 

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>cobertura-maven-plugin</artifactId>
	<version>2.2</version>
	<configuration>
		<formats>
			<format>html</format>
			<format>xml</format>
		</formats>
		<instrumentation>
			<excludes></excludes>
		</instrumentation>
	</configuration>
</plugin>

 

 

3、maven-project-info-reports-plugin

      http://maven.apache.org/plugins/maven-project-info-reports-plugin/

      The Maven Project Info Reports plugin is used to generate reports information about the project.

      eg. project-info-reports:dependencies is used to generate the Project Dependencies report.

 

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-project-info-reports-plugin</artifactId>
	<version>2.1</version>
	<reportSets>
		<reportSet>
			<reports>
				<report>dependencies</report>
				<report>index</report>
			</reports>
		</reportSet>
	</reportSets>
</plugin>

 

 

4、taglist-maven-plugin

      http://mojo.codehaus.org/taglist-maven-plugin/

      The Taglist Maven Plugin generates a report on various tags found in the code, like @todo or //TODO tags.

 

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>taglist-maven-plugin</artifactId>
	<version>2.4</version>
	<configuration>
		<tags>
			<tag>TODO</tag>
			<tag>@TODO</tag>
			<tag>FIXME</tag>
		</tags>
	</configuration>
</plugin>

 

 

5、maven-surefire-report-plugin

      http://maven.apache.org/plugins/maven-surefire-report-plugin/

      The Surefire Report Plugin parses the generated TEST-*.xml files under ${basedir}/target/surefire-reports and renders them to DOXIA which creates the web interface version of the test results.

 

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-report-plugin</artifactId>
	<version>2.4.2</version>
	<configuration>
		<showSuccess>false</showSuccess>
	</configuration>
</plugin>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值