Class PackageArchetypeCatalogMojo

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

    @Mojo(name="generate-and-attach-archetype-catalog",
          threadSafe=true)
    public class PackageArchetypeCatalogMojo
    extends org.apache.maven.plugin.AbstractMojo
    Creates the Maven catalog for the Camel archetypes
    • Field Detail

      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The maven project.
      • outDir

        @Parameter(defaultValue="${project.build.directory}/classes/")
        protected File outDir
        The output directory for generated archetypes
    • Constructor Detail

      • PackageArchetypeCatalogMojo

        public PackageArchetypeCatalogMojo()
    • 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...
      • generateArchetypeCatalog

        public static void generateArchetypeCatalog​(org.apache.maven.plugin.logging.Log log,
                                                    org.apache.maven.project.MavenProject project,
                                                    org.apache.maven.project.MavenProjectHelper projectHelper,
                                                    File outDir)
                                             throws org.apache.maven.plugin.MojoExecutionException,
                                                    IOException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        IOException