Class PrepareCatalogMojo

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

    @Mojo(name="prepare-catalog",
          threadSafe=true)
    public class PrepareCatalogMojo
    extends org.apache.maven.plugin.AbstractMojo
    Prepares the camel catalog to include component, data format, and eip descriptors, and generates a report.
    • Field Detail

      • project

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

        @Parameter(defaultValue="true")
        protected Boolean validate
        Whether to validate if the components, data formats, and languages are properly documented and have all the needed details.
      • componentsOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/components")
        protected File componentsOutDir
        The output directory for components catalog
      • dataFormatsOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/dataformats")
        protected File dataFormatsOutDir
        The output directory for dataformats catalog
      • languagesOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/languages")
        protected File languagesOutDir
        The output directory for languages catalog
      • othersOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/others")
        protected File othersOutDir
        The output directory for others catalog
      • documentsOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/docs")
        protected File documentsOutDir
        The output directory for documents catalog
      • modelsOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/models")
        protected File modelsOutDir
        The output directory for models catalog
      • archetypesOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/archetypes")
        protected File archetypesOutDir
        The output directory for archetypes catalog
      • schemasOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/schemas")
        protected File schemasOutDir
        The output directory for XML schemas catalog
      • mainOutDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/main")
        protected File mainOutDir
        The output directory for main
      • componentsDir

        @Parameter(defaultValue="${project.build.directory}/../../../components")
        protected File componentsDir
        The components directory where all the Apache Camel components are
      • coreDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-core-engine")
        protected File coreDir
        The camel-core directory
      • modelDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-core-model")
        protected File modelDir
        The camel-model directory
      • baseDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-base")
        protected File baseDir
        The camel-base directory
      • languagesDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-core-languages")
        protected File languagesDir
        The camel-core-languages directory
      • jaxpDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-xml-jaxp")
        protected File jaxpDir
        The camel-xml-jaxp directory
      • springDir

        @Parameter(defaultValue="${project.build.directory}/../../../components/camel-spring-xml")
        protected File springDir
        The directory where the camel-spring XML models are
      • archetypesDir

        @Parameter(defaultValue="${project.build.directory}/../../../archetypes")
        protected File archetypesDir
        The archetypes directory where all the Apache Camel Maven archetypes are
      • springSchemaDir

        @Parameter(defaultValue="${project.build.directory}/../../../components/camel-spring-xml/target/schema")
        protected File springSchemaDir
        The directory where the camel-spring XML schema are
      • mainDir

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-main/target/classes/META-INF")
        protected File mainDir
        The directory where the camel-main metadata are
      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
        Maven ProjectHelper.
    • Constructor Detail

      • PrepareCatalogMojo

        public PrepareCatalogMojo()
    • 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...
      • executeArchetypes

        protected void executeArchetypes()
                                  throws Exception
        Throws:
        Exception
      • executeXmlSchemas

        protected void executeXmlSchemas()
                                  throws Exception
        Throws:
        Exception