Cobertura

29 views
Skip to first unread message

Richard Puckett

unread,
Jan 20, 2009, 1:37:14 AM1/20/09
to Masa Developers
By default, when I try to generate a Cobertura (code coverage
analysis) report I get the following:

[INFO] [cobertura:instrument]
[INFO] Not executing cobertura:instrument as the project is not a Java
classpath-capable package

This can be resolved by adding:

<language>java</language>

under line 100 of:

maven-dx-plugin/src/main/resources/META-INF/plexus/components.xml

Chris Wilkes

unread,
Jan 20, 2009, 2:08:52 AM1/20/09
to masa-de...@googlegroups.com
I did the same thing (and added <addedToClasspath>true</addedToClasspath> after that) so that "mvn eclipse:eclipse" generates the .project file, however the .classpath isn't created.

I suppose this isn't strictly necessary as the Android plugin for Eclipse will generate those, however it would be nice to figure out why the .classpath isn't being generated.

To generate the .project file I added a maven-eclipse-plugin plugin definition to the pom.xml file, all this is done via the maven archetype I uploaded earlier (not this .project work that I just added).

Chris
Reply all
Reply to author
Forward
0 new messages