Dear *, I know that jaxb is a subject that pops up on aregular basis but I do not seem to find a related message all the way back to 2007...
We're still using Maven 1 (ok...) and intend to move from JDK 1.5 to 1.6. Our task to generate a schema from classes not longer works with JDK1.6 and this is probably due to the fact that JDK1.6 comes with an 'old' version of JAXB (we're using 2.1.5). I am aware of the article from Kohsuke (http://weblogs.java.net/blog/kohsuke/archive/2007/02/running_jaxbws.html) but mustbe blind as of how to use it in the context of Maven 1. project.xml <!-- JAXB 2.1.5 and transitive dependencies --> <dependency> <groupId>jaxb</groupId> <artifactId>jaxb-api</artifactId> <version>2.1.5</version> <type>jar</type> </dependency> <dependency> <groupId>jaxb</groupId> <artifactId>jaxb-impl</artifactId> <version>2.1.5</version> <type>jar</type> </dependency> <dependency> <groupId>jaxb</groupId> <artifactId>jsr173_1.0_api</artifactId> <version>2.1.5</version> <type>jar</type> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.1.10</version> <type>jar</type> </dependency> maven.xml <preGoal name="java:compile"> <echo>Generating XML-Schema for JAXB-mapped classes</echo> <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask"> <classpath refid="maven.dependency.classpath" /> </taskdef> <schemagen destdir="${maven.build.dest}"> <classpath refid="maven.dependency.classpath" /> <src refid="maven.compile.src.set" /> <include name="**/package-info.java" /> <include name="com/xxxxx/ClientRelationshipStaging.java" /> <schema namespace="urn:com:XXXX:util" file="XXXXX-util.xsd" /> </schemagen> It works fine with JDK 1.5.0_18 but with JDK 1.6.0_13 I get: java:compile: [echo] Generating XML-Schema for JAXB-mapped classes [schemagen] Generating schema from 31 source files [schemagen] Problem encountered during annotation processing; [schemagen] see stacktrace below for more information. [schemagen] java.lang.AssertionError: isSubtype 15 [schemagen] at com.sun.tools.javac.code.Types$5.visitType(Types.java:347) [schemagen] at com.sun.tools.javac.code.Types$5.visitType(Types.java:328) [schemagen] at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visitWildcardType(Types.java:3163) [schemagen] at com.sun.tools.javac.code.Type$WildcardType.accept(Type.java:416) [schemagen] at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3161) [schemagen] at com.sun.tools.javac.code.Types.isSubtype(Types.java:324) [schemagen] at com.sun.tools.javac.code.Types.isSubtype(Types.java:308) [schemagen] at com.sun.tools.apt.mirror.util.TypesImpl.isSubtype(TypesImpl.java:56) [schemagen] at com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:205) [schemagen] at com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:85) [schemagen] at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.isApplicable(PropertyInfoImpl.java:218) It also seems related to: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6738538 But this says it is fixed and delivered... Any suggestion? Anyone faced the same issue???? Many thanks Benoit ----- Thanks & Regards, Benoit http://www.Appendium.com http://objectlab.blogspot.com -- View this message in context: http://www.nabble.com/-m1--JAXB-SchemaGen-and-JDK1.6--%3E-isSubtype-15-tp23133529p23133529.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
