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.AbstractMojo
Injects EIP documentation to camel schema.
-
Field Summary
FieldsModifier and TypeFieldDescriptionPath to camel core-model project root directory.Path to camel core xml project root directory.Path to camel spring project root directory.Optional file pattern to delete files after the documentation enrichment is complete.Path to camel EIP schema.Path to camel EIP schema with enriched documentation.Sub path from camel core xml directory to model directory with generated json files for components.Sub path from camel core directory to model directory with generated json files for components.Sub path from camel spring directory to model directory with generated json files for components.protected org.apache.maven.project.MavenProjectThe maven project.Sub path to itselfFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()static StringfixXmlOutput(String xml) static StringremoveEmptyLines(String xml) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
inputCamelSchemaFile
Path to camel EIP schema. -
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
Sub path to itself -
pathToModelDir
Sub path from camel core directory to model directory with generated json files for components. -
pathToCoreXmlModelDir
Sub path from camel core xml directory to model directory with generated json files for components. -
pathToSpringModelDir
Sub path from camel spring directory to model directory with generated json files for components. -
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.
-
-
Constructor Details
-
EipDocumentationEnricherMojo
public EipDocumentationEnricherMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
fixXmlOutput
-
removeEmptyLines
-