@Mojo(name="resource-bundle", defaultPhase=PACKAGE, requiresDependencyResolution=COMPILE, threadSafe=true) public class ResourcesBundleMojo extends AbstractJavadocMojo
AbstractJavadocMojo.javadocDirectory
, along with javadoc configuration options 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.Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_OPTIONS_PATH
Bundle options path.
|
static String |
RESOURCES_DIR_PATH
Resources directory path.
|
ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, failOnError, failOnWarnings, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, OPTIONS_FILE_NAME, outputDirectory, outputTimestamp, PACKAGES_FILE_NAME, project, session, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
Constructor and Description |
---|
ResourcesBundleMojo() |
Modifier and Type | Method and Description |
---|---|
void |
doExecute()
Assemble a new
JavadocOptions instance that
contains the configuration options in this
mojo, which are a subset of those provided in derivatives of the AbstractJavadocMojo
class (most of the javadoc mojos, in other words). |
buildJavadocOptions, canGenerateReport, configureDependencySourceResolution, execute, executeReport, failOnError, getAttachmentClassifier, getClassesFile, getDefaultJavadocApiLink, getDependencyScopeFilter, getDependencySourcePaths, getDoclint, getDoctitle, getExecutionProjectSourceRoots, getFiles, getJavadocDirectory, getJavadocOptionsFile, getOutputDirectory, getOverview, getProject, getProjectBuildOutputDirs, getProjectSourceRoots, getSourcePaths, getToolchain, getWindowtitle, isAggregator, isSkippedJavadoc, isSkippedModule, isTest, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
getLog, getPluginContext, setLog, setPluginContext
public static final String BUNDLE_OPTIONS_PATH
public static final String RESOURCES_DIR_PATH
public void doExecute() throws MojoExecutionException, MojoFailureException
JavadocOptions
instance that
contains the configuration options in this
mojo, which are a subset of those provided in derivatives of the AbstractJavadocMojo
class (most of the javadoc mojos, in other words). Then, bundle the contents of the
javadocDirectory
along with the assembled JavadocOptions instance (serialized to
META-INF/maven/javadoc-options.xml) into a project attachment for installation/deployment.
MojoExecutionException
MojoFailureException
Mojo.execute()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.