org.apache.maven.plugin.coreit
Class AttachPomMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.coreit.AttachPomMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class AttachPomMojo
extends AbstractMojo

Attaches a POM to the main artifact.

Version:
$Id: AttachPomMojo.java 702445 2008-10-07 11:57:13Z bentmann $
Author:
Benjamin Bentmann
Is defined by the goal name:
attach-pom
Is bound to the specified phase of the standard build lifecycle:
package

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AttachPomMojo()
           
 
Method Summary
 void execute()
          Runs this mojo.
 
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

AttachPomMojo

public AttachPomMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Runs this mojo.

Throws:
MojoFailureException - If the artifact file has not been set.
MojoExecutionException


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.