We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following Schema:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:element name="Foobar"> <xsd:complexType> <xsd:sequence> <xsd:element name="Ersteller" type="xsd:string"/> <xsd:element name="Files"> <xsd:complexType> <xsd:sequence> <xsd:element name="File" maxOccurs="unbounded"> <xsd:complexType> <xsd:all> <xsd:element name="Name" type="xsd:string"/> <xsd:element name="Pruefsumme" type="xsd:string"/> </xsd:all> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="Pruefsumme" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
and the plugin generates code:
... @XmlElementWrapper(name = "Files", required = true) @XmlElement(name = "File") protected List<Foobar.Files.File> files; ...
But the "Files" class (and the "File") class are not generated.
Output (verbose) of the Maven run:
Compilation: Date : - Version : - JAXB version : 2.2.5-2 Include file : <none> Exclude file : <none> Summary file : <none> Instantiate : LAZY Collection : class java.util.ArrayList Interface : interface java.util.List Delete : true Candidates: [!]: (default): de.db.idis.poc.leidas.Foobar.Files 1 candidate(s) being considered. Modifications: de.db.idis.poc.leidas.Foobar#files de.db.idis.poc.leidas.Foobar.Files 1 modification(s) to original code. Deletions: Removing method de.db.idis.poc.leidas.Foobar.Files createFoobarFiles from de.db.idis.poc.leidas.ObjectFactory Removing class de.db.idis.poc.leidas.Foobar.Files from class de.db.idis.poc.leidas.Foobar 2 deletion(s) from original code.
The text was updated successfully, but these errors were encountered:
The problem in the code is that it does not process inner classes correctly. I will try to address this.
As a matter of temporary workaround specify -Xxew:delete=false. This will keep all classes, but result extra classes & methods.
-Xxew:delete=false
Sorry, something went wrong.
486fab7
dmak
No branches or pull requests
I have the following Schema:
and the plugin generates code:
But the "Files" class (and the "File") class are not generated.
Output (verbose) of the Maven run:
The text was updated successfully, but these errors were encountered: