org.apache.maven.plugin.coreit
Class AttachMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
Runs this mojo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachMojo
public AttachMojo()
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.