Class XmlSchemaBeanGeneratorMojo

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

    @Mojo(name="generateXmlBeans")
    public class XmlSchemaBeanGeneratorMojo
    extends AbstractSchemaBasedBeanGeneratorMojo
    Generates Schema Beans from a predefined Schema
    • Field Detail

      • prefixingEnabled

        @Parameter(defaultValue="false")
        protected boolean prefixingEnabled
        The target folder for generated files
    • Constructor Detail

      • XmlSchemaBeanGeneratorMojo

        public XmlSchemaBeanGeneratorMojo()
    • Method Detail

      • doCodeGenerationWithSchema

        protected void doCodeGenerationWithSchema​(org.bndly.schema.model.Schema schema,
                                                  org.bndly.code.common.CodeGenerationContext ctx,
                                                  File targetPath)
                                           throws IOException,
                                                  org.apache.maven.plugin.MojoExecutionException,
                                                  org.apache.maven.plugin.MojoFailureException
        Specified by:
        doCodeGenerationWithSchema in class AbstractSchemaBasedBeanGeneratorMojo
        Throws:
        IOException
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException