It is a well known limitation of Cobertura that it cannot perform reporting on a *separate* integration testing phase. You can search the web on this part. All it can do report on classes ran in the testing phase.
Paul 2008/3/16 Cody Zhang <[EMAIL PROTECTED]>: > Dear All, > > I want to get cobertura report at integration-test.But the goal( > cobertura:instrument) run tiwce! > > My pom: > > > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-site-plugin</artifactId> > > <version>2.0-beta-5</version> > > <configuration> > > <outputEncoding>UTF-8</outputEncoding> > > </configuration> > > <executions> > > <execution> > > <id>generate-site</id> > > > <phase>pre-integration-test</phase> > > <goals> > > <goal>site</goal> > > </goals> > > </execution> > > <execution> > > <id>deploy-site</id> > > > <phase>integration-test</phase> > > <goals> > > <goal>deploy</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > > > > > <reporting> > > <plugins> > > <plugin> > > <groupId>org.codehaus.mojo</groupId> > > <artifactId>cobertura-maven-plugin</artifactId> > > </plugin> > > </plugins> > > </reporting> > > > > > > <dependencies> > > <dependency> > > <groupId>net.sourceforge.cobertura</groupId> > > <artifactId>cobertura</artifactId> > > <version>1.9</version> > > </dependency> > > </dependencies> > > > > My commond: > > Mvn integration-test > > > > > >
