Package org.apache.camel.maven.packaging
Class PrepareCatalogMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.packaging.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 Summary
Fields Modifier and Type Field Description protected File
archetypesDir
The archetypes directory where all the Apache Camel Maven archetypes areprotected File
archetypesOutDir
The output directory for archetypes catalogprotected File
baseDir
The camel-base directoryprotected File
componentsDir
The components directory where all the Apache Camel components areprotected File
componentsOutDir
The output directory for components catalogprotected File
coreDir
The camel-core directoryprotected File
dataFormatsOutDir
The output directory for dataformats catalogprotected File
documentsOutDir
The output directory for documents catalogprotected File
jaxpDir
The camel-xml-jaxp directoryprotected File
languagesDir
The camel-core-languages directoryprotected File
languagesOutDir
The output directory for languages catalogprotected File
mainDir
The directory where the camel-main metadata areprotected File
mainOutDir
The output directory for mainprotected File
modelDir
The camel-model directoryprotected File
modelsOutDir
The output directory for models catalogprotected File
othersOutDir
The output directory for others catalogprotected org.apache.maven.project.MavenProject
project
The maven project.protected org.apache.maven.project.MavenProjectHelper
projectHelper
Maven ProjectHelper.protected File
schemasOutDir
The output directory for XML schemas catalogprotected File
springDir
The directory where the camel-spring XML models areprotected File
springSchemaDir
The directory where the camel-spring XML schema areprotected Boolean
validate
Whether to validate if the components, data formats, and languages are properly documented and have all the needed details.
-
Constructor Summary
Constructors Constructor Description PrepareCatalogMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute goal.protected void
executeArchetypes()
protected Set<String>
executeComponents()
protected Set<String>
executeDataFormats()
protected void
executeDocuments(Set<String> components, Set<String> dataformats, Set<String> languages, Set<String> others)
protected Set<String>
executeLanguages()
protected void
executeMain()
protected void
executeModel()
protected void
executeXmlSchemas()
-
-
-
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.
-
-
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...
-
-