My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
MavenPlugin  

Maven, Featured
Updated Jun 1, 2011 by eun...@gmail.com

Install

Add a snapshot repository.

	<pluginRepositories>
		<pluginRepository>
			<id>zact-snaphost</id>
			<url>http://zact.googlecode.com/svn/maven/snapshot-repository</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

Or a release repository.

	<pluginRepositories>
		<pluginRepository>
			<id>zact</id>
			<url>http://zact.googlecode.com/svn/maven/repository</url>
		</pluginRepository>
	</pluginRepositories>

Add the plugin to reporting plugins.

	<reporting>
		<plugins>
			<plugin>
				<groupId>undercover</groupId>
				<artifactId>undercover-maven-plugin</artifactId>
				<configuration>

					<includes>
						<include>undercover/**</include>
					</includes>
					<excludes>
						<exclude>undercover/ISample</exclude>
					</excludes>

					<sourceEncoding>UTF-8</sourceEncoding>

					<formats>
						<format>html</format>
						<format>emmaxml</format>
						<format>coberturaxml</format>
					</formats>

				</configuration>
			</plugin>
		</plugins>
	</reporting>

You can run the goal directly:

mvn undercover:undercover-maven-plugin:undercover

Goals

instrument

Instrument the classes to measure coverage.

Configuration

Name Description Required
includes Include specified classes No
excludes Exclude specified classes No

report

Configuration

Name Description Required
sourceEncoding Source encoding. Default is UTF-8. No
formats Report formats. Available formats are html, emmaxml and coberturaxml. Default is html. No


Sign in to add a comment
Powered by Google Project Hosting