Class JavadocJar

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

    @Mojo(name="jar",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class JavadocJar
    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

      • JavadocJar

        public JavadocJar()
    • Method Detail

      • doExecute

        public void doExecute()
                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getClassifier

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