|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
public abstract class AbstractPackagingMojo
Abstract super class for all the packaging mojos. This class contains the logic for actually building the packaging types.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractPackagingMojo()
|
Method Summary | |
---|---|
void |
buildExplodedPackaging()
Build the package in an exploded format. |
void |
buildExplodedPackaging(Set excludes)
Build the package in an exploded format. |
protected void |
buildSpecificPackaging(Set excludes)
Perform any packaging specific to this type. |
void |
execute()
Main execution for the goal. |
String |
getArchiveName()
|
abstract String |
getArtifactType()
Get the type of the artifact. |
File |
getClassesDirectory()
|
abstract File |
getDeploymentDescriptor()
Get the deployment descriptor file. |
File |
getDeploymentDescriptorDest()
|
String |
getDeploymentDescriptorDestName()
|
File |
getLibDirectory()
|
File |
getOutputDirectory()
|
File |
getPackagingDirectory()
|
MavenProject |
getProject()
|
boolean |
isExplodedOnly()
|
protected void |
packageClasses()
Routine that includes the specified artifact into the exploded packaging. |
protected void |
packageLib(Artifact artifact,
String name)
Routine that includes the specified artifact into the exploded packaging. |
protected void |
packageResources()
Routine that packages resources not handled by default resource handling. |
protected void |
performPackaging()
Generates the packaged archive. |
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 |
---|
public AbstractPackagingMojo()
Method Detail |
---|
public boolean isExplodedOnly()
public MavenProject getProject()
public File getPackagingDirectory()
public File getClassesDirectory()
public File getLibDirectory()
public abstract File getDeploymentDescriptor()
public abstract String getArtifactType()
public File getOutputDirectory()
public void buildExplodedPackaging() throws MojoExecutionException
MojoExecutionException
- if an error occurred
MojoFailureException
- if an error occurredpublic void buildExplodedPackaging(Set excludes) throws MojoExecutionException
excludes
- File patterns to exclude from the packaging.
MojoExecutionException
- if an error occurred
MojoFailureException
- if an error occurredprotected void buildSpecificPackaging(Set excludes) throws MojoExecutionException
excludes
- The exclude list.
MojoExecutionException
- For plugin failures.
MojoFailureException
- For unexpected plugin failures.
IOException
- For exceptions during IO operations.public String getArchiveName()
protected void performPackaging() throws MojoExecutionException
MojoExecutionException
- if there is a problempublic String getDeploymentDescriptorDestName()
public File getDeploymentDescriptorDest()
public void execute() throws MojoExecutionException
MojoExecutionException
- if an error occurred while building the webappprotected void packageResources() throws Exception
Exception
protected void packageLib(Artifact artifact, String name) throws Exception
artifact
- name
-
Exception
protected void packageClasses() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |