I am going crazy here. I keep adding new modules daily to a large project.
Seemingly randomly cobertura keeps stopping.
in my master pom.xml in the dependancyManagement section I have:
*<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<!-- BUG IN PLUGIN:
<dataFile>${basedir}/target/cobertura.ser</dataFile>-->
<!--<systemProperties>
<property>
<name>net.sourceforge.cobertura.datafile
</name>
<value>${basedir}/target/cobertura/cobertura.ser</value>
</property>
</systemProperties>-->
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>*
Then in the report section:
*<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.2</version>
</plugin>*
Then for each module I want to use cobertura:
in the plugin section:
*<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>*
and in the modules report section:
* <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>*
But I still keep getting this error now:
*[INFO] [site:site]
**[INFO] Not executing cobertura:report as the cobertura data file
(C:\viewstore\esp_lynx_dap\esp\dap\c2\common-c2\target\cobertura\cobertura.ser)
could not
be found
[WARNING] Error loading report
org.codehaus.mojo.surefire.SurefireReportMojo- AbstractMethodError:
canGenerateReport()
*
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---