Class PackageDataFormatMojo

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

@Mojo(name="generate-dataformats-list", threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class PackageDataFormatMojo extends AbstractGeneratorMojo
Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in Camel.
  • Field Details

    • dataFormatOutDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File dataFormatOutDir
      The output directory for the generated data format resources
    • configurerSourceOutDir

      @Parameter(defaultValue="${project.basedir}/src/generated/java") protected File configurerSourceOutDir
      The output directory for the generated data format java classes
    • configurerResourceOutDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File configurerResourceOutDir
      The output directory for the generated data format configurer resources
    • schemaOutDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File schemaOutDir
      The output directory for the generated data format schema resources
  • Constructor Details

    • PackageDataFormatMojo

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

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Execute 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...
    • prepareDataFormat

      public int prepareDataFormat() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • generatePropertyConfigurer

      public String generatePropertyConfigurer(String pn, String cn, String en, Collection<org.apache.camel.tooling.model.DataFormatModel.DataFormatOptionModel> options) throws IOException
      Throws:
      IOException
    • generateMetaInfConfigurer

      public static String generateMetaInfConfigurer(String fqn)