Class ValidateComponentMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="validate-components",
          threadSafe=true)
    public class ValidateComponentMojo
    extends AbstractGeneratorMojo
    Validate a Camel component analyzing if the meta-data files for
    • components
    • dataformats
    • languages
    all contains the needed meta-data such as assigned labels, documentation for each option
    • Field Detail

      • validate

        @Parameter(defaultValue="true")
        protected Boolean validate
        Whether to validate if the components, data formats, and languages are properly documented and have all the needed details.
      • outDir

        @Parameter(defaultValue="${project.build.outputDirectory}")
        protected File outDir
        The output directory for generated components file
    • Constructor Detail

      • ValidateComponentMojo

        public ValidateComponentMojo()
    • Method Detail

      • 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...