Class PackageOtherMojo

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

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

      • otherOutDir

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

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

      • PackageOtherMojo

        public PackageOtherMojo()
      • PackageOtherMojo

        public PackageOtherMojo​(org.apache.maven.plugin.logging.Log log,
                                org.apache.maven.project.MavenProject project,
                                org.apache.maven.project.MavenProjectHelper projectHelper,
                                File otherOutDir,
                                File schemaOutDir,
                                org.sonatype.plexus.build.incremental.BuildContext buildContext)
    • 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...
      • prepareOthers

        public void prepareOthers()
                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException