Hi all, I followed Boris Lenzinger's suggestions dated March 19 (Re: [M2] Maven Generated Reports). I am unable to generate any coverage of my projects. Assuming it was something about my multiproject build (because running "site" on the parent pom.xml still generates a Cobertura error"), I decided to start from scratch.
I created a simple archetype project using "mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app". I then modified the pom as follows: <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.app</groupId> <artifactId>my-app</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Maven Quick Start Archetype</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.7</version> <scope>test</scope> </dependency> </dependencies> <pluginRepositories> <pluginRepository> <id>CodeHaus</id> <name></name> <url>http://snapshots.maven.codehaus.org/maven2</url> <layout>default</layout> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> <updatePolicy>never</updatePolicy> </releases> </pluginRepository> </pluginRepositories> <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0-20060322.071830-5</version> </plugin> </plugins> </reporting> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0-20060322.071830-5</version> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> When I run "mvn clean site", I get coverage reports generated, but they say 0% coverage even though I have modified the AppTest to call the App.main method. If I run "mvn site" again, I get the correct coverage reported. I am obviously using maven 2.0.3. What else am I missing? For those of you who are successful with Cobertura, what goals are you running and are you using a multiproject build? Thanks in advance, D DeFrance