Class ModelloXsdMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.modello.maven.AbstractModelloGeneratorMojo
org.codehaus.modello.maven.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 Details

    • outputDirectory

      @Parameter(defaultValue="${project.build.directory}/generated-site/resources/xsd", required=true) private 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 String xsdFileName
      Since:
      1.0-alpha-21
  • Constructor Details

    • ModelloXsdMojo

      public ModelloXsdMojo()
  • Method Details