Package org.apache.camel.maven
Class EipDocumentationEnricherMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.EipDocumentationEnricherMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="eip-documentation-enricher", requiresDependencyResolution=COMPILE_PLUS_RUNTIME, defaultPhase=PREPARE_PACKAGE) public class EipDocumentationEnricherMojo extends org.apache.maven.plugin.AbstractMojoInjects EIP documentation to camel schema.
-
-
Field Summary
Fields Modifier and Type Field Description FilecamelCoreModelDirPath to camel core-model project root directory.FilecamelCoreXmlDirPath to camel core xml project root directory.FilecamelSpringDirPath to camel spring project root directory.StringdeleteFilesAfterRunOptional file pattern to delete files after the documentation enrichment is complete.FileinputCamelSchemaFilePath to camel EIP schema.FileoutputCamelSchemaFilePath to camel EIP schema with enriched documentation.StringpathToCoreXmlModelDirSub path from camel core xml directory to model directory with generated json files for components.StringpathToModelDirSub path from camel core directory to model directory with generated json files for components.StringpathToSpringModelDirSub path from camel spring directory to model directory with generated json files for components.protected org.apache.maven.project.MavenProjectprojectThe maven project.StringtargetDirSub path to itself
-
Constructor Summary
Constructors Constructor Description EipDocumentationEnricherMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
inputCamelSchemaFile
@Parameter(required=true) public File inputCamelSchemaFile
Path to camel EIP schema.
-
outputCamelSchemaFile
@Parameter(required=true) public File outputCamelSchemaFile
Path to camel EIP schema with enriched documentation.
-
camelCoreModelDir
@Parameter(defaultValue="${project.build.directory}/sources/camel-core-model") public File camelCoreModelDirPath to camel core-model project root directory.
-
camelCoreXmlDir
@Parameter(defaultValue="${project.build.directory}/sources/camel-core-xml") public File camelCoreXmlDirPath to camel core xml project root directory.
-
camelSpringDir
@Parameter(defaultValue="${project.build.directory}/sources/camel-spring") public File camelSpringDirPath to camel spring project root directory.
-
targetDir
@Parameter(defaultValue="${project.build.directory}/classes") public String targetDirSub path to itself
-
pathToModelDir
@Parameter(defaultValue="org/apache/camel/model") public String pathToModelDir
Sub path from camel core directory to model directory with generated json files for components.
-
pathToCoreXmlModelDir
@Parameter(defaultValue="org/apache/camel/core/xml") public String pathToCoreXmlModelDir
Sub path from camel core xml directory to model directory with generated json files for components.
-
pathToSpringModelDir
@Parameter(defaultValue="org/apache/camel/spring") public String pathToSpringModelDir
Sub path from camel spring directory to model directory with generated json files for components.
-
deleteFilesAfterRun
@Parameter public String deleteFilesAfterRun
Optional file pattern to delete files after the documentation enrichment is complete.
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
-