Class PackageLegalMojo

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

    @Mojo(name="generate-legal",
          threadSafe=true,
          defaultPhase=PREPARE_PACKAGE)
    public class PackageLegalMojo
    extends AbstractGeneratorMojo
    Analyses the Camel plugins in a project and generates legal files.
    • Field Detail

      • legalOutDir

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

      • PackageLegalMojo

        public PackageLegalMojo()
    • 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...
      • processLegal

        public void processLegal​(Path legalOutDir)
                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException