[ http://jira.codehaus.org/browse/MCOBERTURA-1?page=comments#action_62180 ]
Nigel Magnay commented on MCOBERTURA-1: --------------------------------------- I have just tried this again with Maven 2.0.3 release; - updated to the latest cobertura-plugin from mojo-sandbox and installed It is claiming build success - however, no tests were run. Surefire reports 'There are some test failure.' - but - there are no surefire test reports generated (probably because no tests were actually run). Relevant part of the trace from running mvn -X cobertura:cobertura: [DEBUG] -- end configuration -- [INFO] [surefire:test] [INFO] Setting reports dir: W:\1244\dev\modules\kms-services\target/surefire-reports [DEBUG] Test Classpath : [DEBUG] W:\1244\dev\modules\kms-services\target\test-classes [DEBUG] W:\1244\dev\modules\kms-services\target\generated-classes\cobertura [DEBUG] W:\1244\dev\modules\kms-services\target\generated-classes\cobertura [DEBUG] W:\1244\dev\modules\kms-services\target\test-classes [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-web\1.2.5\spring-web-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\relaxngDatatype\relaxngDatatype\20020414\relaxngDatatype-20020414.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\isorelax\isorelax\20020414\isorelax-20020414.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\quartz\quartz\1.5.0-RC1\quartz-1.5.0-RC1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-hibernate\1.2.5\spring-hibernate-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\servlets\cos\05Nov2002\cos-05Nov2002.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-dao\1.2.5\spring-dao-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\axis\axis-saaj\1.3\axis-saaj-1.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\utils\2.0(20)\utils-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-remoting\1.2.5\spring-remoting-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring\1.2.5\spring-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\resource\connector\1.0\connector-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\servlet\jstl\1.0\jstl-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-wal\2.0-SNAPSHOT\kms-wal-2.0-SNAPSHOT.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-model\2.0-SNAPSHOT\kms-model-2.0-SNAPSHOT.ja r [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\hibernate\hibernate\3.1.2\hibernate-3.1.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\axis\axis-jaxrpc\1.3\axis-jaxrpc-1.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-beanutils\commons-beanutils\1.6.1\commons-beanutils-1.6.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javamail\javamail\1.3.1\javamail-1.3.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\acf\2.0(20)\acf-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-commons\2.0-SNAPSHOT\kms-commons-2.0-SNAPSHO T.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\cobertura\cobertura\1.7\cobertura-1.7.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\media\jai\jai_core\1.1.2\jai_core-1.1.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\xml-resolver\xml-resolver\1.1\xml-resolver-1.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\das\2.0(20)\das-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-api\2.0-SNAPSHOT\kms-api-2.0-SNAPSHOT.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-wal-core\2.0-SNAPSHOT\kms-wal-core-2.0-SNAPS HOT.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-beans\1.2.5\spring-beans-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-collections\commons-collections\2.1.1\commons-collections-2.1.1.j ar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\jaxen\jaxen\1.0-FCS\jaxen-1.0-FCS.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\gacf\2.0(20)\gacf-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\media\jai\jai_codec\1.1.2\jai_codec-1.1.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\saxpath\saxpath\1.0-FCS\saxpath-1.0-FCS.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\mail\mail\1.3.2\mail-1.3.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-jdbc\1.2.5\spring-jdbc-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\wsdl4j\wsdl4j\1.5.1\wsdl4j-1.5.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\struts\struts\1.1\struts-1.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-support\1.2.5\spring-support-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-aop\1.2.5\spring-aop-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\fop\fop\0.20.5\fop-0.20.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\xstream\xstream\1.1.3\xstream-1.1.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-core\2.0-SNAPSHOT\kms-core-2.0-SNAPSHOT.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\oracle\ojdbc14\9.0.2.0.0\ojdbc14-9.0.2.0.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-webmvc\1.2.5\spring-webmvc-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\deltaxml\deltaxml\1.0\deltaxml-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\dbunit\dbunit\2.1\dbunit-2.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\axis\axis\1.3\axis-1.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-id\commons-id\0.1-dev\commons-id-0.1-dev.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\framework\2.0(20)\framework-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\net\sf\saxon\saxon\8.5.1\saxon-8.5.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-digester\commons-digester\1.6\commons-digester-1.6.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\taglibs\standard\1.0.6\standard-1.0.6.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-fileupload\commons-fileupload\1.0\commons-fileupload-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\commons-codec\commons-codec\1.2\commons-codec-1.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\antlr\antlr\2.7.6rc1\antlr-2.7.6rc1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-orm\1.2.5\spring-orm-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\msv\msv\20020414\msv-20020414.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\activation\activation\1.0.2\activation-1.0.2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\hsqldb\hsqldb\1.8.0.1\hsqldb-1.8.0.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\xerces\xerces\2.4.0\xerces-2.4.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\struts\struts-legacy\1.1\struts-legacy-1.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\xpp3\xpp3\1.1.3.3\xpp3-1.1.3.3.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\ehcache\ehcache\1.1\ehcache-1.1.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-context\1.2.5\spring-context-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\oracle\xdb\1.0\xdb-1.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\javax\sql\jdbc-stdext\2.0\jdbc-stdext-2.0.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\org\springframework\spring-core\1.2.5\spring-core-1.2.5.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\stxx\stxx\1.3b2-csw\stxx-1.3b2-csw.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\com\cswgroup\kms\modules\kms-utils\2.0-SNAPSHOT\kms-utils-2.0-SNAPSHOT.ja r [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\kernel\gpa\2.0(20)\gpa-2.0(20).jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\dom4j\dom4j\1.4\dom4j-1.4.jar [DEBUG] C:\Documents and Settings\nigel.magney\.m2\repository\renderx\xep\1.0\xep-1.0.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\nigel.magney\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\nigel.magney\.m2\repository\org\apache\maven\surefire\surefire\1.5 .2\surefire-1.5.2.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\nigel.magney\.m2\repository\org\apache\maven\surefire\surefire-boo ter\1.5.2\surefire-booter-1.5.2.jar [DEBUG] Adding to surefire test classpath: c:\maven-2.0.3\bin\..\core\plexus-utils-1.1.jar java -classpath "C:\Documents and Settings\nigel.magney\.m2\repository\org\apache\maven\surefire\surefire-booter\1.5.2\surefire-booter- 1.5.2.jar;c:\maven-2.0.3\bin\..\core\plexus-utils-1.1.jar" org.apache.maven.surefire.SurefireBooter W:\1244\dev\modules\kms-services [ERROR] There are some test failure. NB: just doing surefire:test operates correctly. I'm not sure what else I can do to diagnose this... > When using cobertura, build fails believing tests have failed when they > haven't > ------------------------------------------------------------------------------- > > Key: MCOBERTURA-1 > URL: http://jira.codehaus.org/browse/MCOBERTURA-1 > Project: Maven 2.x Cobertura Plugin > Type: Bug > Environment: Maven 2.0.2 > Cobertura built from latest SVN > Reporter: Nigel Magnay > Priority: Minor > Fix For: 2.0 > > > Project builds correctly, and surefire:test executes with 0 errors > POM is setup to include cobertura: > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>cobertura-maven-plugin</artifactId> > <executions> > <execution> > <goals> > <goal>clean</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > When running cobertura:cobertura, build proceeds correctly, and the tests all > run correctly, but then the build fails: > Results : > [surefire] Tests run: 10, Failures: 0, Errors: 0 > [WARNING] POM for 'kernel:framework:pom:1.0(8)' is invalid. It will be > ignored f > or artifact resolution. Reason: Not a v4.0.0 POM. > [INFO] [surefire:test] > [INFO] Setting reports dir: W:\1244 - Knowledge Management System > (KMS)\dev\modu > les\kms-services\target/surefire-reports > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] There are some test failure. > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: There are some test > fail > ure. > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:556) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi > fecycle(DefaultLifecycleExecutor.java:472) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy > cle(DefaultLifecycleExecutor.java:859) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def > aultLifecycleExecutor.java:731) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:502) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:485) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:455) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:303) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:270) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:139) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: There are some > test f > ailure. > at > org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:384) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:415) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:531) > ... 20 more > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Total time: 32 seconds > [INFO] Finished at: Tue Feb 21 11:30:27 GMT 2006 > [INFO] Final Memory: 18M/83M > [INFO] > ------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
