maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Theussl <ltheu...@apache.org>
Subject Re: Can't get "mvn site" to generating site/reports
Date Mon, 11 Apr 2011 17:50:08 GMT

first thing: *always* pin down the versions of the plugins you want to 
use. Your log says you're running site-plugin-2.0.1, but it looks like 
your using maven 3, in which case you have to use the m3 version of the 
plugin [1]. And as your log states explicitly: there is no version 
number for the cobertura plugin. If that doesn#t fix it, open a jira 
with a reproducible test case.

HTH,
-Lukas

[1] 
http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html


emerson wrote:
> Hi, I'm trying to get cobertura working on my project, and it isn't
> generating any pages or reports for the site.
>
> Below is the log and further below the pom.xml. I just want to get
> maven to generate the tests, cobertura, checkstyle, pmd and findbugs
> reports to be shown in my CI server (jenkins)
>
> Another question: what is the best practice for this, is it running
> site, or is using a different profile with the instrumentation and
> report configuration?
>
> Just for the record, this is an simple stand-alone app generated using
> mvn archetype (with just one class and one test).
>
> C:\fabricasw\new_workspace\testcobertura>mvn site
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective
> model for testcobertura:testcobertura:ja
> r:0.0.1-SNAPSHOT
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:cobertura-maven-plugin is missing. @ line 78, column
> 12
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer
> support building such malformed projects.
> [WARNING]
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building testcobertura 0.0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- cobertura-maven-plugin:2.4:clean (site) @ testcobertura ---
> [INFO]
> [INFO] --- maven-site-plugin:2.0.1:site (default-site) @ testcobertura ---
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.188s
> [INFO] Finished at: Mon Apr 11 14:21:13 BRT 2011
> [INFO] Final Memory: 5M/10M
> [INFO] ------------------------------------------------------------------------
>
> pom.xml
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
>
> 	<groupId>gtestcobertura</groupId>
> 	<artifactId>testcobertura</artifactId>
> 	<version>0.0.1-SNAPSHOT</version>
> 	<packaging>jar</packaging>
>
> 	<name>testcobertura</name>
> 	<url>http://maven.apache.org</url>
>
> 	<properties>
> 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> 	</properties>
> 	<build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.codehaus.mojo</groupId>
> 				<artifactId>cobertura-maven-plugin</artifactId>
> 				<version>2.4</version>
> 				<configuration>
> 					<instrumentation />
> 				</configuration>
> 				<executions>
> 					<execution>
> 						<id>site</id>
> 						<phase>pre-site</phase>
>
> 						<goals>
> 							<goal>clean</goal>
> 						</goals>
> 					</execution>
> 					<execution>
> 						<id>instrument</id>
> 						<phase>package</phase>
>
> 						<goals>
> 							<goal>instrument</goal>
> 							<goal>cobertura</goal>
> 						</goals>
> 					</execution>
> 				</executions>
> 			</plugin>
> 		</plugins>
> 	</build>
> 	<dependencies>
> 		<dependency>
> 			<groupId>junit</groupId>
> 			<artifactId>junit</artifactId>
> 			<version>3.8.1</version>
> 			<scope>test</scope>
> 		</dependency>
> 	</dependencies>
>
> 	<reporting>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-surefire-report-plugin</artifactId>
> 				<version>2.8</version>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-checkstyle-plugin</artifactId>
> 				<version>2.6</version>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-pmd-plugin</artifactId>
> 				<version>2.5</version>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.codehaus.mojo</groupId>
> 				<artifactId>findbugs-maven-plugin</artifactId>
> 				<version>2.3.2</version>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.codehaus.mojo</groupId>
> 				<artifactId>cobertura-maven-plugin</artifactId>
> 			</plugin>
> 		</plugins>
> 	</reporting>	
> </project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message