Class JavadocLicenseMojo

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

    @Mojo(name="javadoc-license",
          defaultPhase=PREPARE_PACKAGE,
          requiresProject=true,
          threadSafe=true)
    public class JavadocLicenseMojo
    extends org.apache.maven.plugin.AbstractMojo
    Add a license file to created Javadoc JAR files.

    License files are first resolved relative to the current directory. If it cannot be found there, parent directories are checked until one of the following occurs:

    • The parent directory is not part of the Maven project (does not contain a pom.xml file), and is not the root directory of the current Git project.
    • The maximum number of parent directories has been reached.
    Author:
    Rob Spoor
    • Constructor Detail

      • JavadocLicenseMojo

        public JavadocLicenseMojo()
    • Method Detail

      • 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