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 generated pojo beans catalogprotected FileThe components directory where all the Apache Camel components areprotected FileThe output directory for generated component catalogprotected FileThe output directory for generated dev-consoles catalogprotected FileThe camel-core directoryprotected FileThe output directory for the data format catalogprotected FileThe DSL directoryprotected FileThe camel-core-languages directoryprotected FileThe output directory for generated language catalogprotected FileThe directory where the camel-main metadata areprotected FileThe output directory for generated mainprotected FileThe camel-model directoryprotected FileThe output directory for models-app catalogprotected FileThe output directory for generated model catalogprotected FileThe output directory for generate others catalogprotected org.apache.maven.project.MavenProjectThe maven project.protected FileThe output directory for generated 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 generated transformer 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 generated component catalog -
dataFormatsOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/dataformats") protected File dataFormatsOutDirThe output directory for the data format catalog -
languagesOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/languages") protected File languagesOutDirThe output directory for generated language catalog -
transformersOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/transformers") protected File transformersOutDirThe output directory for generated transformer catalog -
beansOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/beans") protected File beansOutDirThe output directory for generated pojo beans catalog -
consolesOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/dev-consoles") protected File consolesOutDirThe output directory for generated dev-consoles catalog -
othersOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/others") protected File othersOutDirThe output directory for generate others catalog -
modelsOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/models") protected File modelsOutDirThe output directory for generated model 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 generated XML schemas catalog -
mainOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources/org/apache/camel/catalog/main") protected File mainOutDirThe output directory for generated 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
-
-
Constructor Details
-
PrepareCatalogMojo
@Inject public PrepareCatalogMojo(org.eclipse.aether.RepositorySystem repoSystem)
-
-
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
-