Class PackageJaxbMojo

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

    @Mojo(name="generate-jaxb-list",
          threadSafe=true,
          defaultPhase=PROCESS_CLASSES)
    public class PackageJaxbMojo
    extends AbstractGeneratorMojo
    Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in Camel.
    • Field Detail

      • index

        @Parameter(defaultValue="${project.build.directory}/META-INF/jandex.idx")
        protected File index
        The name of the index file. Default's to 'target/classes/META-INF/jandex.idx'
      • jaxbIndexOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources")
        protected File jaxbIndexOutDir
        The output directory for generated components file
    • Constructor Detail

      • PackageJaxbMojo

        public PackageJaxbMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Execute goal.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
        org.apache.maven.plugin.MojoFailureException - something bad happened...