Class ResourcesBundleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.javadoc.AbstractJavadocMojo
org.apache.maven.plugins.javadoc.ResourcesBundleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
TestResourcesBundleMojo

@Mojo(name="resource-bundle", defaultPhase=PACKAGE, requiresDependencyResolution=COMPILE, threadSafe=true) public class ResourcesBundleMojo extends AbstractJavadocMojo
Bundle 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.
Since:
2.7
  • Field Details

    • BUNDLE_OPTIONS_PATH

      public static final String BUNDLE_OPTIONS_PATH
      Bundle options path.
      See Also:
    • RESOURCES_DIR_PATH

      public static final String RESOURCES_DIR_PATH
      Resources directory path.
      See Also:
    • finalName

      @Parameter(defaultValue="${project.build.finalName}", readonly=true) private String finalName
      Base name of artifacts produced by this project. This will be combined with AbstractJavadocMojo.getAttachmentClassifier() to produce the name for this bundle jar.
    • projectHelper

      private org.apache.maven.project.MavenProjectHelper projectHelper
      Helper component to provide an easy mechanism for attaching an artifact to the project for installation/deployment.
    • archiverManager

      private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
      Archiver manager, used to manage jar builder.
  • Constructor Details

    • ResourcesBundleMojo

      @Inject public ResourcesBundleMojo(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

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      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). 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.
      Specified by:
      doExecute in class AbstractJavadocMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
      See Also:
      • Mojo.execute()