Closed BudWhiteStudying closed 3 years ago
Ok it turns out the goal will not generate anything from sheer enums, but will work as expected if a "collector" class listing the enums as its properties is processed together with the enums e.g. adding this class
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType
public class CollectorClass {
@XmlAttribute(name = "SampleEnum")
private SampleEnum sampleEnum;
}
will result in a schema for the class and a schema for the enum.
In a sample Java project (JDK8) containing a single Java enum file, the execution of the
schemagen
goal results in an empty schemas folder (save for theMETA-INF/sun-jaxb.episode
file).Is the
schemagen
goal expected to build XSD from enums?