@Mojo(name="ear", defaultPhase=PACKAGE, threadSafe=true, requiresDependencyResolution=TEST) public class EarMojo extends AbstractEarMojo
Modifier and Type | Field and Description |
---|---|
protected String |
escapeString
Expression preceded with this String won't be interpolated
\${foo} will be replaced with ${foo}.
|
APPLICATION_XML_URI, artifactTypeMappings, defaultLibBundleDir, encoding, generatedDescriptorLocation, META_INF, project, UTF_8, version
Constructor and Description |
---|
EarMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
String |
getApplicationXml() |
protected String[] |
getExcludes()
Returns a string array of the excludes to be used
when assembling/copying the ear.
|
protected String[] |
getIncludes()
Returns a string array of the includes to be used
when assembling/copying the ear.
|
protected org.codehaus.plexus.archiver.jar.JarArchiver |
getJarArchiver()
Returns the
JarArchiver implementation used
to package the EAR file. |
String[] |
getPackagingExcludes() |
String[] |
getPackagingIncludes() |
boolean |
isNonFilteredExtension(String fileName) |
void |
setApplicationXml(String applicationXml) |
void |
setPackagingExcludes(String packagingExcludes) |
void |
setPackagingIncludes(String packagingIncludes) |
void |
unpack(File source,
File destDir)
Unpacks the module into the EAR structure.
|
getJbossConfiguration, getModules, getProject, getWorkDirectory
@Parameter(property="maven.ear.escapeString") protected String escapeString
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractEarMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public String getApplicationXml()
public void setApplicationXml(String applicationXml)
protected String[] getExcludes()
protected String[] getIncludes()
public String[] getPackagingExcludes()
public void setPackagingExcludes(String packagingExcludes)
public String[] getPackagingIncludes()
public void setPackagingIncludes(String packagingIncludes)
public void unpack(File source, File destDir) throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException, IOException, org.codehaus.plexus.archiver.ArchiverException
source
- File to be unpacked.destDir
- Location where to put the unpacked files.org.codehaus.plexus.archiver.manager.NoSuchArchiverException
IOException
org.codehaus.plexus.archiver.ArchiverException
protected org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
JarArchiver
implementation used
to package the EAR file.
By default the archiver is obtained from the Plexus container.public boolean isNonFilteredExtension(String fileName)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.