org.codehaus.cargo.maven2
Class PackageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.cargo.maven2.AbstractCommonMojo
org.codehaus.cargo.maven2.AbstractCargoMojo
org.codehaus.cargo.maven2.PackageMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class PackageMojo
- extends AbstractCargoMojo
Package a container distribution, a Configuration and deployed deployables. See
Packager
.
- Since:
- Maven2 Cargo Plugin v0.3
- Version:
- $Id: PackageMojo.java 1702 2008-09-02 12:37:46Z adriana $
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.codehaus.cargo.maven2.AbstractCargoMojo |
containsAutoDeployable, createAutoDeployDeployable, createConfiguration, createContainer, createLogger, createNewContainer, execute, getCargoProject, getConfigurationElement, getContainerElement, getDeployerElement, getFileHandler, loadEmbeddedContainerDependencies, setCargoProject, setConfigurationElement, setContainerElement, setDeployerElement, setFileHandler |
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 |
PackageMojo
public PackageMojo()
getPackagerElement
protected Packager getPackagerElement()
- Returns:
- the user configuration of a Cargo
Packager
. See the
Cargo Maven2
plugin reference guide and
Packager
for more details.
setPackagerElement
protected void setPackagerElement(Packager packagerElement)
- Parameters:
packagerElement
- the Packager
configuration defined by the user- See Also:
getPackagerElement()
doExecute
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
- Executes the plugin.
This method must be implemented by all Mojos extending this class. The
reason for this pattern is because we want the AbstractCargoMojo.execute()
method to always be called
so that necessary plugin initialization can be performed. Without this pattern Mojos
extending this class could "forget" to call super.execute()
thus leading to
unpredictible results.
- Specified by:
doExecute
in class AbstractCargoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of error- See Also:
AbstractCargoMojo.doExecute()
createPackager
protected Packager createPackager(Container container)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2004-2012 Codehaus. All Rights Reserved.