Class JavadocJarMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AggregatorJavadocJarMojo, TestJavadocJarMojo

    @Mojo(name="jar",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class JavadocJarMojo
    extends AbstractJavadocMojo
    Bundles the Javadoc documentation for main Java code in an NON aggregator project into a jar using the standard Javadoc Tool.
    Since:
    2.0
    • Constructor Detail

      • JavadocJarMojo

        public JavadocJarMojo()
    • Method Detail

      • doExecute

        protected void doExecute()
                          throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        doExecute in class AbstractJavadocMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getClassifier

        protected String getClassifier()
        Returns:
        the wanted classifier, i.e. javadoc or test-javadoc