Class PlexusMergeMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.plexus.maven.plugin.PlexusMergeMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="merge-metadata", defaultPhase=PROCESS_CLASSES) public class PlexusMergeMojo extends org.apache.maven.plugin.AbstractMojo
Merges a set of Plexus descriptors into one descriptor file.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private File[]
    The paths of the input descriptors to merge.
    private Merger
     
    private File
    The destination for the merged descriptor.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • output

      @Parameter(defaultValue="${project.build.outputDirectory}/META-INF/plexus/components.xml", required=true) private File output
      The destination for the merged descriptor.
    • descriptors

      @Parameter private File[] descriptors
      The paths of the input descriptors to merge.
    • merger

      @Component(hint="componentsXml") private Merger merger
  • Constructor Details

    • PlexusMergeMojo

      public PlexusMergeMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException