Class TestJavadocJarMojo

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

    @Mojo(name="test-jar",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=TEST,
          threadSafe=true)
    public class TestJavadocJarMojo
    extends JavadocJarMojo
    Bundles the Javadoc documentation for test Java code in a NON aggregator project into a jar using the standard Javadoc Tool.
    Since:
    2.5
    Author:
    Vincent Siveton
    • Constructor Detail

      • TestJavadocJarMojo

        @Inject
        public TestJavadocJarMojo​(org.apache.maven.project.MavenProjectHelper projectHelper,
                                  org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
                                  org.apache.maven.doxia.tools.SiteTool siteTool,
                                  org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
                                  ResourceResolver resourceResolver,
                                  org.eclipse.aether.RepositorySystem repoSystem,
                                  org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager,
                                  org.apache.maven.project.ProjectBuilder mavenProjectBuilder,
                                  org.apache.maven.toolchain.ToolchainManager toolchainManager)
    • Method Detail

      • getClassifier

        protected java.lang.String getClassifier()
        Overrides:
        getClassifier in class JavadocJarMojo
        Returns:
        the wanted classifier, i.e. javadoc or test-javadoc
      • getDoctitle

        protected java.lang.String getDoctitle()
        Overrides:
        getDoctitle in class AbstractJavadocMojo
        Returns:
        the title to be placed near the top of the overview summary file
      • getOverview

        protected java.io.File getOverview()
        Overrides:
        getOverview in class AbstractJavadocMojo
        Returns:
        the overview documentation file from the user parameter or from the javadocdirectory
      • getWindowtitle

        protected java.lang.String getWindowtitle()
        Overrides:
        getWindowtitle in class AbstractJavadocMojo
        Returns:
        the title to be placed in the HTML title tag
      • getProjectBuildOutputDirs

        protected java.util.List<java.io.File> getProjectBuildOutputDirs​(org.apache.maven.project.MavenProject p)
        Overrides:
        getProjectBuildOutputDirs in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of directories where compiled classes are placed for the given project. These dirs are added to the javadoc classpath.
      • getProjectSourceRoots

        protected java.util.List<java.lang.String> getProjectSourceRoots​(org.apache.maven.project.MavenProject p)
        Overrides:
        getProjectSourceRoots in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of source paths for the given project
      • getExecutionProjectSourceRoots

        protected java.util.List<java.lang.String> getExecutionProjectSourceRoots​(org.apache.maven.project.MavenProject p)
        Overrides:
        getExecutionProjectSourceRoots in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of source paths for the execution project of the given project
      • isTest

        protected boolean isTest()
        Description copied from class: AbstractJavadocMojo
        Indicates whether this goal generates documentation for the Java Test code.
        Overrides:
        isTest in class AbstractJavadocMojo
        Returns:
        true if the goal generates Test Javadocs, false otherwise.