Class ComponentDslMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.ComponentDslMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-component-dsl", threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, defaultPhase=PROCESS_CLASSES) public class ComponentDslMojo extends AbstractGeneratorMojo
Generate Endpoint DSL source files for Components.
  • Field Details

    • buildDir

      @Parameter(defaultValue="${project.build.directory}") protected File buildDir
      The project build directory
    • baseDir

      @Parameter(defaultValue="${project.basedir}") protected File baseDir
      The base directory
    • sourcesOutputDir

      @Parameter protected File sourcesOutputDir
      The output directory
    • componentsMetadata

      @Parameter protected File componentsMetadata
      Component Metadata file
    • outputResourcesDir

      @Parameter protected File outputResourcesDir
      Components DSL Metadata
    • componentsDslPackageName

      @Parameter(property="camel.pmp.package-name", defaultValue="org.apache.camel.builder.component") protected String componentsDslPackageName
      The package where to the main DSL component package is
    • componentsDslFactoriesPackageName

      @Parameter(property="camel.pmp.factories-package-name", defaultValue="org.apache.camel.builder.component.dsl") protected String componentsDslFactoriesPackageName
      The package where to generate component DSL specific factories
    • jsonDir

      @Parameter(property="camel.pmp.json-directory", defaultValue="${project.basedir}/../../catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components") protected File jsonDir
      The catalog directory where the component json files are
  • Constructor Details

    • ComponentDslMojo

      @Inject public ComponentDslMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
  • Method Details

    • execute

      public void execute(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
      Overrides:
      execute in class AbstractGeneratorMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • capitalize

      public String capitalize(String str)
    • uncapitalize

      public String uncapitalize(String str)
    • xmlEncode

      public String xmlEncode(String str)
    • javadoc

      public String javadoc(String indent, String doc)
    • getMainDescriptionWithoutPathOptions

      public String getMainDescriptionWithoutPathOptions(org.apache.camel.tooling.model.ComponentModel model)
    • toCamelCaseLower

      public String toCamelCaseLower(String str)
    • findConfiguration

      public static Optional<org.apache.camel.tooling.model.ComponentModel.ComponentOptionModel> findConfiguration(Collection<org.apache.camel.tooling.model.ComponentModel.ComponentOptionModel> options)