Hi all, I testet maven 2.0.4 and i have some trouble with the cobertura-maven-plugin. If i run "mvn test" all tests are success. But if i run "mvn site" the second test fails (the first test success).
$ mvn site [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building TALE-CORE Archetype [INFO] task-segment: [site] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing surefire-report:report ... [INFO] [surefire:test] [INFO] Setting reports dir: c:\workspaceTALE\tale\tale-core\target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- [surefire] Running de.arcor.tale.util.XMLUtilTest [surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2,143 sec Results : [surefire] Tests run: 2, Failures: 0, Errors: 0 [INFO] Preparing cobertura:cobertura [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Instrumenting 35 classes to c:\workspaceTALE\tale\tale-core\target\generated-classes\cobertura Cobertura: Saved information on 33 classes. Instrument time: 701ms [INFO] Instrumentation was successful. [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Setting reports dir: c:\workspaceTALE\tale\tale-core\target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Cobertura: Loaded information on 33 classes. [surefire] Running de.arcor.tale.util.XMLUtilTest [surefire] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0,801 sec <<<<<<<< FAILURE !! Results : [surefire] Tests run: 2, Failures: 0, Errors: 2 Cobertura: Saved information on 33 classes. [ERROR] There are some test failure. ... Cobertura: Loaded information on 33 classes. Report time: 2894ms [INFO] Cobertura Report generation was successful. [INFO] Generate an index file for the English version. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31 seconds [INFO] Finished at: Mon May 08 23:55:00 CEST 2006 [INFO] Final Memory: 8M/15M [INFO] ------------------------------------------------------------------------ The Exception is: java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>( RuntimeBuiltinLeafInfoImpl.java:779) at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>( RuntimeTypeInfoSetImpl.java:25) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet( RuntimeModelBuilder.java:78) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet( RuntimeModelBuilder.java:41) at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java :97) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>( RuntimeModelBuilder.java:44) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet( JAXBContextImpl.java:320) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>( JAXBContextImpl.java:198) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java :76) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java :55) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java :124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132) at javax.xml.bind.ContextFinder.find(ContextFinder.java:286) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:358) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:323) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) at de.xyz.tale.util.XMLUtil.deserialize(XMLUtil.java:43) Any idea? javax.xml.namespace.QName is available in rt.jar (java 1.5.0_06) and jsr173-1.0.jar (needet for javax.xml.stream.XMLStreamReader). Please help me. Regards, Christian