Class 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 java.io.File[] descriptors
      The paths of the input descriptors to merge.
      private Merger merger  
      private java.io.File output
      The destination for the merged descriptor.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      PlexusMergeMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 Detail

      • output

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

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

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

      • PlexusMergeMojo

        public PlexusMergeMojo()
    • Method Detail

      • execute

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