`

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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics