jaxb - "http://annox.dev.java.net" customizations require the "-Xannotate" switch -
I'm trying to run a real schema through hyperJesb. I repeatedly test schema using jaxb , And jaxb correctly imports the schema every time, however, when I try to get hyperJaxbb to create hibernate-annotated Java classes from the same schema, I get the following error:
[error] in parse schema Not error. Location [File: / C: /path/to/src/main/resources/schema.xsd {4322]]. Org.xml.sax.SAXParseException; SystemId: file: / c: / path / to / src / main / resource / schema.xsd; Line number: 4; Column number: 32; The "-Xannotate" switch is required to enable this plug-in by using "Http://annox.dev.java.net" optimization
I created this error message And read other postings about it, but no clear instructions have been found to solve it. The closest I've found, which says that the Encode plugin has been activated by the Xenet command-line argument
.
I have read, but adding the following to the XSD file did not end the error, possibly because xsd
does not use the prefix anywhere in the jaxb
xmlns: jaxb = "http://java.sun.com/xml/ns/jaxb" jaxb: version = "2.1" xmlns: annox = "http: // annox. Dev .java.net "jaxb: extensionBindingPrefixes =" annox "
I uploaded a zip file, in which all the related contents quickly get the problem. This is a zip file of the project, which includes the desired schema. You only have to reproduce the problem, navigate to the command line in the root directory of the unzipped project, and type mvn clean install
to regenerate the error.
How do I solve this error? Edit
I have used the following with the addition of plugin configuration in pom.xml, but now Success has not been reached
& lt; Args & gt; & Lt; Arg & gt; -Xannotate & lt; / Arg & gt; & Lt; / Arg & gt; Edit the SECOND Edit But the result is a null pointer exception
, which you can read to help ease the use of hyperjaxb
by others, I have a complete current pom Xml
. Along with this, this modified pom.xml
and the above zip file is enough to rebuild the problem in a few minutes. Is this a configuration problem or bug?
You must give this plugin the & lt; ArtifactId & gt; Maven-hyperjaxb3-plugin & lt; / ArtifactId>
& lt; Plugin & gt; & Lt; Group & gt; Org.jvnet.hyperjaxb3 & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-hyperjaxb3-plugin & lt; / ArtifactId> & Lt; Version & gt; 0.6.0 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt; Goal & gt; Generated & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; Configuration & gt; & Lt; Expansion & gt; True & lt; / Extension & gt; & Lt; RoundtripTestClassName & gt; RoundtripTest & lt; / RoundtripTestClassName & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;
Comments
Post a Comment