Class PackageArchetypeCatalogMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected File
    The output directory for generated archetypes
    protected org.apache.maven.project.MavenProject
    The maven project.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PackageArchetypeCatalogMojo(org.apache.maven.project.MavenProjectHelper projectHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute goal.
    static void
    generateArchetypeCatalog(org.apache.maven.plugin.logging.Log log, org.apache.maven.project.MavenProject project, org.apache.maven.project.MavenProjectHelper projectHelper, File outDir)
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • PackageArchetypeCatalogMojo

      @Inject public PackageArchetypeCatalogMojo(org.apache.maven.project.MavenProjectHelper projectHelper)
  • Method Details

    • 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