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 Sag <ds...@epo.org> on 2006/02/01 10:29:04 UTC
Re: I can't get cobertura to work with maven 2.0.2
Brett Porter <br...@gmail.com> wrote on 31-01-2006 18:46:42:
> On 2/1/06, David Sag <ds...@epo.org> wrote:
> >
> >
> > Okay I have changed my build so that the checkstyle etc all happen on
the
> > verify phase, and have updated to use the latest snapshot version of
> > cobertura plugin.
> >
> > [mvn install] works fine - all is as expected.
> >
> > but [mvn site] continues to break as follows:
>
>
> Do you have zero-length classes, or is this something else? I recall
seeing
> AIOOBE as a bug back in jcoverage some time back, but I'm not sure this
is
> the same.
>
yes that's exactly what is happening. the second (redundent)
instrumentation generates 0 length classes.
I am not sure what AIOOBE means.
> I stress that this all used to work fine with maven 2.0 and the old
> > cobertura plugin. I suspected a bug in the surefire reporting rather
than
> > in cobertura, and so removed any references to surefire from my
reporting
> > but i get pretty much the exact same result.
>
>
> The cobertura plugin was changed around mid-Dec to better use the
facilities
> provided by Maven 2.0.1 for defining the lifecycle.
>
shame it broke eh.
> Does anyone out there have a working example of maven 2.0.2 using
cobertura
> > to instrument classes and generate a report? If so please would you
care to
> > share your wisdom? Or would you recommend rolling back to maven 2.0
until
> > these issues are fixed?
> >
>
> We use it for:
> https://svn.apache.org/repos/asf/maven/repository-manager/trunk
>
I see no reference at all to cobertura in
https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml
dave
Re: I can't get cobertura to work with maven 2.0.2
Posted by Brett Porter <br...@gmail.com>.
On 2/1/06, David Sag <ds...@epo.org> wrote:
> yes that's exactly what is happening. the second (redundent)
> instrumentation generates 0 length classes.
> I am not sure what AIOOBE means.
I wonder if this is related to Mike Perham's recent comments about the
changes. AIOOBE was ArrayIndexOutOfBoundsException.
> shame it broke eh.
It didn't work for me before, now it does. The setup is the right
direction, but it appears there are still problems.
> I see no reference at all to cobertura in
> https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml
<reporting>
<plugins>
<!-- TODO: should be omitted when there are no tests to run -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
- Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org