org.ops4j.pax.construct.inherit
Class InheritMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ops4j.pax.construct.inherit.InheritMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InheritMojo
extends org.apache.maven.plugin.AbstractMojo

Support mojo inheritance by merging the local plugin metadata with metadata from dependent plugins. Mojo inheritance is requested using a custom javadoc tag:

   ...
   @extendsPlugin archetype
   @goal create
   ...
 
By default the current goal is taken as the goal to be extended. To extend a different goal use:
   ...
   @extendsPlugin archetype
   @extendsGoal create
   @goal create-project
   ...
 


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InheritMojo()
           
 
Method Summary
 void execute()
          Maven plugin entry-point
 
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
 

Constructor Detail

InheritMojo

public InheritMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Maven plugin entry-point

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2008. All Rights Reserved.