public abstract class AbstractPackagingMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractPackagingMojo() |
Modifier and Type | Method and Description |
---|---|
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() |
org.apache.maven.project.MavenProject |
getProject() |
boolean |
isExplodedOnly() |
protected void |
packageClasses()
Routine that includes the specified artifact into the exploded packaging.
|
protected void |
packageLib(org.apache.maven.artifact.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.
|
public boolean isExplodedOnly()
public org.apache.maven.project.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 org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if an error occurredMojoFailureException
- if an error occurredpublic void buildExplodedPackaging(Set excludes) throws org.apache.maven.plugin.MojoExecutionException
excludes
- File patterns to exclude from the packaging.org.apache.maven.plugin.MojoExecutionException
- if an error occurredMojoFailureException
- if an error occurredprotected void buildSpecificPackaging(Set excludes) throws org.apache.maven.plugin.MojoExecutionException
excludes
- The exclude list.org.apache.maven.plugin.MojoExecutionException
- For plugin failures.MojoFailureException
- For unexpected plugin failures.IOException
- For exceptions during IO operations.public String getArchiveName()
protected void performPackaging() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if there is a problempublic String getDeploymentDescriptorDestName()
public File getDeploymentDescriptorDest()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if an error occurred while building the webappprotected void packageResources() throws Exception
Exception
protected void packageLib(org.apache.maven.artifact.Artifact artifact, String name) throws Exception
artifact
- name
- Exception
Copyright © 2006-2012 Codehaus. All Rights Reserved.