Package org.apache.maven.plugins.javadoc
Class TestResourcesBundleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.javadoc.AbstractJavadocMojo
org.apache.maven.plugins.javadoc.ResourcesBundleMojo
org.apache.maven.plugins.javadoc.TestResourcesBundleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="test-resource-bundle",
defaultPhase=PACKAGE,
requiresDependencyResolution=TEST,
threadSafe=true)
public class TestResourcesBundleMojo
extends ResourcesBundleMojo
Bundle
TestJavadocJarMojo.testJavadocDirectory
, along with javadoc configuration options from
AbstractJavadocMojo
such as taglet, doclet, and link information into a deployable
artifact. This artifact can then be consumed by the javadoc plugin mojos when used by the
includeDependencySources
option, to generate javadocs that are somewhat consistent
with those generated in the original project itself.- Since:
- 2.7
-
Field Summary
Fields inherited from class org.apache.maven.plugins.javadoc.ResourcesBundleMojo
BUNDLE_OPTIONS_PATH, RESOURCES_DIR_PATH
Fields inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, failOnError, failOnWarnings, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, mojoExecution, OPTIONS_FILE_NAME, outputDirectory, outputTimestamp, PACKAGES_FILE_NAME, project, reactorProjects, session, siteTool, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
ConstructorDescriptionTestResourcesBundleMojo
(org.apache.maven.project.MavenProjectHelper projectHelper, 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 Summary
Methods inherited from class org.apache.maven.plugins.javadoc.ResourcesBundleMojo
doExecute
Methods inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
buildJavadocOptions, canGenerateReport, configureDependencySourceResolution, execute, executeReport, failOnError, getClassesFile, getDefaultJavadocApiLink, getDependencyScopeFilter, getDependencySourcePaths, getDoclint, getDoctitle, getExecutionProjectSourceRoots, getFiles, getJavadocOptionsFile, getOutputDirectory, getOverview, getPluginReportOutputDirectory, getProject, getProjectBuildOutputDirs, getProjectSourceRoots, getReactorProjects, getSourcePaths, getToolchain, getWindowtitle, isAggregator, isSkippedJavadoc, isSkippedModule, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
TestResourcesBundleMojo
@Inject public TestResourcesBundleMojo(org.apache.maven.project.MavenProjectHelper projectHelper, 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 Details
-
getAttachmentClassifier
Description copied from class:AbstractJavadocMojo
Override this if you need to provide a bundle attachment classifier, as in the case of test javadocs.- Overrides:
getAttachmentClassifier
in classAbstractJavadocMojo
- Returns:
- The attachment classifier.
-
getJavadocDirectory
- Overrides:
getJavadocDirectory
in classAbstractJavadocMojo
- Returns:
- the current javadoc directory
-
isTest
protected boolean isTest()Description copied from class:AbstractJavadocMojo
Indicates whether this goal generates documentation for theJava Test code
.- Overrides:
isTest
in classAbstractJavadocMojo
- Returns:
true
if the goal generates Test Javadocs,false
otherwise.
-