Class ModelloXsdMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="xsd",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true)
    public class ModelloXsdMojo
    extends AbstractModelloGeneratorMojo
    Creates an XML schema from the model.
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-site/resources/xsd",
                   required=true)
        private java.io.File outputDirectory
        The output directory of the generated XML Schema.
      • enforceMandatoryElements

        @Parameter(defaultValue="false")
        private boolean enforceMandatoryElements
        Boolean flag to enforce mandatory elements in the XML schema. If set to false the XSD won't enforce mandatory elements in the XML which can be useful if the XML is post processed (e.g. POM merging with parents). The default value is false for backwards compatibility reasons, but should be set to true for most cases.
        Since:
        2.1.0
      • xsdFileName

        @Parameter
        private java.lang.String xsdFileName
        Since:
        1.0-alpha-21
    • Constructor Detail

      • ModelloXsdMojo

        public ModelloXsdMojo()