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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected FileThe output directory for pojo beans catalogprotected FileThe components directory where all the Apache Camel components areprotected FileThe output directory for components catalogprotected FileThe output directory for dev-consoles catalogprotected FileThe camel-core directoryprotected FileThe output directory for dataformats catalogprotected FileThe DSL directoryprotected FileThe camel-core-languages directoryprotected FileThe output directory for languages catalogprotected FileThe directory where the camel-main metadata areprotected FileThe output directory for mainprotected FileThe camel-model directoryprotected FileThe output directory for models-app catalogprotected FileThe output directory for models catalogprotected FileThe output directory for others catalogprotected org.apache.maven.project.MavenProjectThe maven project.protected org.apache.maven.project.MavenProjectHelperMaven ProjectHelper.protected FileThe output directory for XML schemas catalogstatic final Stringprotected booleanSkip the execution of this mojoprotected FileThe directory where the camel-spring XML models areprotected FileThe directory where the camel-spring XML schema arestatic final Stringprotected FileThe output directory for transformers catalogprotected BooleanWhether to validate if the components, data formats, and languages are properly documented and have all the needed details.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
SEPARATOR
- See Also:
-
ADOC
- See Also:
-
SRC_GENERATED_RESOURCES
- See Also:
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project. -
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 componentsOutDirThe output directory for components catalog -
dataFormatsOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/dataformats") protected File dataFormatsOutDirThe output directory for dataformats catalog -
languagesOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/languages") protected File languagesOutDirThe output directory for languages catalog -
transformersOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/transformers") protected File transformersOutDirThe output directory for transformers catalog -
beansOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/beans") protected File beansOutDirThe output directory for pojo beans catalog -
consolesOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/dev-consoles") protected File consolesOutDirThe output directory for dev-consoles catalog -
othersOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/others") protected File othersOutDirThe output directory for others catalog -
modelsOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/models") protected File modelsOutDirThe output directory for models catalog -
modelsAppOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/models-app") protected File modelsAppOutDirThe output directory for models-app catalog -
schemasOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/schemas") protected File schemasOutDirThe output directory for XML schemas catalog -
mainOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/main") protected File mainOutDirThe output directory for main -
componentsDir
The components directory where all the Apache Camel components are -
coreDir
The camel-core directory -
modelDir
The camel-model directory -
dslDir
The DSL directory -
languagesDir
@Parameter(defaultValue="${project.basedir}/../../core/camel-core-languages") protected File languagesDirThe camel-core-languages directory -
springDir
@Parameter(defaultValue="${project.basedir}/../../components/camel-spring-xml") protected File springDirThe directory where the camel-spring XML models are -
springSchemaDir
@Parameter(defaultValue="${project.basedir}/../../components/camel-spring-xml/target/schema") protected File springSchemaDirThe directory where the camel-spring XML schema are -
mainDir
@Parameter(defaultValue="${project.basedir}/../../core/camel-main/target/classes/META-INF") protected File mainDirThe directory where the camel-main metadata are -
skip
@Parameter(defaultValue="false", property="camel.prepare-catalog.skip") protected boolean skipSkip the execution of this mojo -
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelperMaven ProjectHelper.
-
-
Constructor Details
-
PrepareCatalogMojo
public PrepareCatalogMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute 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...
-
executeModel
- Throws:
Exception
-
executeModelApps
- Throws:
Exception
-
executeComponents
- Throws:
Exception
-
executeDataFormats
- Throws:
Exception
-
executeLanguages
- Throws:
Exception
-
executeTransformers
- Throws:
Exception
-
executeBeans
- Throws:
Exception
-
executeDevConsoles
- Throws:
Exception
-
executeXmlSchemas
- Throws:
Exception
-
executeMain
- Throws:
Exception
-
executeDocuments
-