org.apache.maven.plugin.coreit
Class AttachMojo

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

public class AttachMojo
extends AbstractMojo

Attaches a secondary artifact to the current project. This mimics source/javadoc attachments or other assemblies.

Version:
$Id: AttachMojo.java 751803 2009-03-09 19:36:26Z bentmann $
Author:
Benjamin Bentmann
Is defined by the goal name:
attach
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
AttachMojo()
           
 
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

AttachMojo

public AttachMojo()
Method Detail

execute

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

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


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