org.codehaus.mojo.jboss.packaging
Class ParMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
          extended by org.codehaus.mojo.jboss.packaging.ParMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class ParMojo
extends AbstractPackagingMojo

Builds a deployable JBoss Process Archive.

Since:
2.1
Is bound to the specified phase of the standard build lifecycle:
package
Requires the dependencies in this specified scope:
runtime
Is defined by the goal name:
par

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ParMojo()
           
 
Method Summary
 String getArtifactType()
          Get the type of the artifact.
 File getDeploymentDescriptor()
          Get the deployment descriptor file.
 File getDeploymentDescriptorDest()
           
protected  void packageClasses()
          Overrides the default implementation so classes are packaged under a subdirectory.
protected  void packageLib(Artifact artifact, String name)
          Overrides the default implementation to explode the depdencies into the classes directory.
protected  void packageResources()
          Packages the par-specific resources.
 
Methods inherited from class org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
buildExplodedPackaging, buildExplodedPackaging, buildSpecificPackaging, execute, getArchiveName, getClassesDirectory, getDeploymentDescriptorDestName, getLibDirectory, getOutputDirectory, getPackagingDirectory, getProject, isExplodedOnly, performPackaging
 
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

ParMojo

public ParMojo()
Method Detail

getArtifactType

public String getArtifactType()
Get the type of the artifact.

Specified by:
getArtifactType in class AbstractPackagingMojo
Returns:
The type of the generated artifact.

getDeploymentDescriptor

public File getDeploymentDescriptor()
Description copied from class: AbstractPackagingMojo
Get the deployment descriptor file. Subclasses may override this method to provide a different name for their type of archive packaging.

Specified by:
getDeploymentDescriptor in class AbstractPackagingMojo
Returns:
deployment descriptor File

getDeploymentDescriptorDest

public File getDeploymentDescriptorDest()
Overrides:
getDeploymentDescriptorDest in class AbstractPackagingMojo

packageResources

protected void packageResources()
                         throws Exception
Packages the par-specific resources.

Overrides:
packageResources in class AbstractPackagingMojo
Throws:
Exception

packageClasses

protected void packageClasses()
                       throws Exception
Overrides the default implementation so classes are packaged under a subdirectory.

Overrides:
packageClasses in class AbstractPackagingMojo
Throws:
Exception

packageLib

protected void packageLib(Artifact artifact,
                          String name)
                   throws Exception
Overrides the default implementation to explode the depdencies into the classes directory.

Overrides:
packageLib in class AbstractPackagingMojo
Throws:
Exception


Copyright © 2006-2011 Codehaus. All Rights Reserved.