|
|||||||||
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 | |
---|---|
protected java.io.File |
deploymentDescriptorFile
The location of the jboss deployment descriptor file (e.g., jboss-service.xml, jboss-spring.xml, etc). |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractPackagingMojo()
|
Method Summary | |
---|---|
void |
buildExplodedPackaging()
|
void |
buildExplodedPackaging(java.util.Set excludes)
Build the package in an exploded format. |
protected void |
buildSpecificPackaging(java.util.Set excludes)
Perform any packaging specific to this type. |
java.lang.String[] |
getAlternateDeploymentDescriptorFilenames()
If no deployment descriptor filesnames are found, check for the existence of alternates before failing. |
java.lang.String |
getArchiveName()
|
abstract java.lang.String |
getArtifactType()
Get the type of the artifact. |
abstract java.lang.String |
getDeploymentDescriptorFilename()
Get the name of the deployment descriptor file. |
java.io.File |
getOutputDirectory()
|
java.io.File |
getPackagingDirectory()
|
org.apache.maven.project.MavenProject |
getProject()
|
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
protected java.io.File deploymentDescriptorFile
Constructor Detail |
---|
public AbstractPackagingMojo()
Method Detail |
---|
public org.apache.maven.project.MavenProject getProject()
public java.io.File getPackagingDirectory()
public abstract java.lang.String getDeploymentDescriptorFilename()
public abstract java.lang.String getArtifactType()
public java.lang.String[] getAlternateDeploymentDescriptorFilenames()
public java.io.File getOutputDirectory()
public void buildExplodedPackaging() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
- if an error occurred
org.apache.maven.plugin.MojoFailureException
- if an error occurredpublic void buildExplodedPackaging(java.util.Set excludes) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
excludes
- File patterns to exclude from the packaging.
org.apache.maven.plugin.MojoExecutionException
- if an error occurred
org.apache.maven.plugin.MojoFailureException
- if an error occurredprotected void buildSpecificPackaging(java.util.Set excludes) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, java.io.IOException
excludes
- The exclude list.
org.apache.maven.plugin.MojoExecutionException
- For plugin failures.
org.apache.maven.plugin.MojoFailureException
- For unexpected plugin failures.
java.io.IOException
- For exceptions during IO operations.public java.lang.String getArchiveName()
protected void performPackaging() throws java.io.IOException, org.codehaus.plexus.archiver.ArchiverException, org.codehaus.plexus.archiver.jar.ManifestException, org.apache.maven.artifact.DependencyResolutionRequiredException, org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
java.io.IOException
- if there is a problem
org.codehaus.plexus.archiver.ArchiverException
- if there is a problem
org.codehaus.plexus.archiver.jar.ManifestException
- if there is a problem
org.apache.maven.artifact.DependencyResolutionRequiredException
- if there is a problem
org.apache.maven.plugin.MojoExecutionException
- if there is a problem
org.apache.maven.plugin.MojoFailureException
- if there is a problem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |