You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hay <dh...@localmatters.com> on 2006/06/09 16:18:14 UTC
[m2] Cobertura plugin generates empty report
Hello,
I've been trying to get the cobertura plugin running on our project, but
I'm having the same problems Daun DeFrance was having (March 28:
Continued Cobertura Plugin Issues). That is, if I run the "site" goal
after the "clean" goal, I end up with a report that shows 0% test
coverage for every class. If I run the site again (without running
"clean" again) then I get the coverage information that I would expect.
My pluginManagement section contains this:
<plugin>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
In the "build" section I have this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
And my reporting section looks like this:
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
Any suggestions on what might be going on? Is this a known issue with
the cobertura-maven-plugin? Or do I have something misconfigured?
Thanks!
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Cobertura plugin generates empty report
Posted by Doug Douglass <do...@gmail.com>.
David,
We've had cobertura reporting working for quite some time. My pom is very
similar except we don't have the phase element.
Note that we're still using version 2.0-SNAPSHOT. Maybe that's a clue?
Doug
On 6/9/06, David Hay <dh...@localmatters.com> wrote:
>
> Hello,
>
> I've been trying to get the cobertura plugin running on our project, but
> I'm having the same problems Daun DeFrance was having (March 28:
> Continued Cobertura Plugin Issues). That is, if I run the "site" goal
> after the "clean" goal, I end up with a report that shows 0% test
> coverage for every class. If I run the site again (without running
> "clean" again) then I get the coverage information that I would expect.
>
> My pluginManagement section contains this:
>
> <plugin>
> <artifactId>cobertura-maven-plugin</artifactId>
> <version>2.0</version>
> </plugin>
>
> In the "build" section I have this:
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>cobertura-maven-plugin</artifactId>
> <executions>
> <execution>
> <phase>clean</phase>
> <goals>
> <goal>clean</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> And my reporting section looks like this:
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>cobertura-maven-plugin</artifactId>
> </plugin>
> </plugins>
> </reporting>
>
> Any suggestions on what might be going on? Is this a known issue with
> the cobertura-maven-plugin? Or do I have something misconfigured?
>
> Thanks!
> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>