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 Details

    • 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 camelCoreModelDir
      Path to camel core-model project root directory.
    • camelCoreXmlDir

      @Parameter(defaultValue="${project.build.directory}/sources/camel-core-xml") public File camelCoreXmlDir
      Path to camel core xml project root directory.
    • camelSpringDir

      @Parameter(defaultValue="${project.build.directory}/sources/camel-spring") public File camelSpringDir
      Path to camel spring project root directory.
    • targetDir

      @Parameter(defaultValue="${project.build.directory}/classes") public String targetDir
      Sub 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 project
      The 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

      public static String fixXmlOutput(String xml)
    • removeEmptyLines

      public static String removeEmptyLines(String xml)