Hi 3.0.2
Bye
Il giorno 16/dic/2011 16:56, "Anders Hammar [via Maven]" <
ml-node+s40175n5080629...@n5.nabble.com> ha scritto:
>
> What version of Maven are you using?
>
> /Anders (mobile)
> Den 16 dec 2011 16.37 skrev "smoking81" <[hidden email]>:
>
> > Hi there! I am new in the ML and also a new maven user.. I've hope
anybody
> > here will kindly help me with a problem is letting me get crazy... :)
> >
> > I will try to briefly describe it here:
> >
> > I have a modular project in which, for every single module, I use
> > jaxb2-maven-plugin to compile XSD files with xjc. Now, suppose the
modules
> > are compiled in the order A-->B. For A everything works fine (i.e. I
get
> > the
> > *XsdImpl.java), but for B I get the following:
> >
> > /[INFO]
> >
------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
org.codehaus.mojo:jaxb2-maven-plugin:1.2:xjc
> > (model) on project B: DTD factory class
> > org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from
> > DTDDVFactory. -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute
> > goal org.codehaus.mojo:jaxb2-maven-plugin:1.2:xjc (model) on project B:
DTD
> > factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not
> > extend
> > from DTDDVFactory
> >        at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

> >        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

> >        at
> >
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> >
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

> >        at
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> >        at
> >
> >
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

> >        at
> >
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: DTD factory
> > class
> > org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from
> > DTDDVFactory.
> >        at org.codehaus.mojo.jaxb2.XjcMojo.execute(XjcMojo.java:352)
> >        at
> >
> >
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

> >        at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

> >        ... 19 more
> > Caused by: org.apache.xerces.impl.dv.DVFactoryException: DTD factory
class
> > org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from
> > DTDDVFactory.
> >        at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown
> > Source)
> >        at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown
> > Source)
> >        at
org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown
> > Source)
> >        at
org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown
> > Source)
> >        at
org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown
> > Source)
> >        at
org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown
> > Source)
> >        at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown
Source)
> >        at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown
Source)
> >        at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown
> > Source)
> >        at
> >
> >
org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager.<init>(Unknown

> > Source)
> >        at
> > org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.<init>(Unknown
> > Source)
> >        at
> >
> >
org.apache.xerces.jaxp.validation.AbstractXMLSchema.newValidatorHandler(Unknown

> > Source)
> >        at
com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:47)
> >        at
> >
> >
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement(AnnotationParserFactoryImpl.java:136)

> >        at
> >
> >
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:214)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
> >
> >
com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:271)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
> >
> >
com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:97)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
> >
> >
com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:172)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
> >
> >
com.sun.tools.xjc.ModelLoader$SpeculationChecker.startElement(ModelLoader.java:427)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
> >
> >
com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement(VersionChecker.java:78)

> >        at
> > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> >        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> > Source)
> >        at
> >
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> > Source)
> >        at
> >
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

> > Source)
> >        at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> >        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
> >        at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> > Source)
> >        at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
> >        at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79)
> >        at com.sun.tools.xjc.ModelLoader$2.parse(ModelLoader.java:451)
> >        at
> >
com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:237)
> >        at
> >
> >
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:298)

> >        at
> > com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:87)
> >        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
> >        at
> >
com.sun.tools.xjc.ModelLoader.createXSOMSpeculative(ModelLoader.java:468)
> >        at
com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:338)
> >        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:145)
> >        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:91)
> >        at com.sun.tools.xjc.Driver.run(Driver.java:287)
> >        at org.codehaus.mojo.jaxb2.XjcMojo.execute(XjcMojo.java:301)
> >        ... 21 more
> > [ERROR]
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please
> > read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > /
> > Both the modules use the same configuration for the plugin. In each of
> > their
> > poms there is something


--
View this message in context: 
http://maven.40175.n5.nabble.com/Problem-with-jaxb2-maven-plugin-1-2-tp5080568p5080817.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Reply via email to