@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, getTempFolder, getWorkDirectorygetLog, getPluginContext, setLog, setPluginContext@Parameter(property="maven.ear.escapeString") protected String escapeString
public void execute()
throws MojoExecutionException,
MojoFailureException
execute in interface Mojoexecute in class AbstractEarMojoMojoExecutionExceptionMojoFailureExceptionpublic String getApplicationXml()
applicationXmlpublic void setApplicationXml(String applicationXml)
applicationXml - applicationXmlprotected String[] getExcludes()
protected String[] getIncludes()
public String[] getPackagingExcludes()
public void setPackagingExcludes(String packagingExcludes)
packagingExcludes - packagingExcludespublic String[] getPackagingIncludes()
public void setPackagingIncludes(String packagingIncludes)
packagingIncludes - packagingIncludespublic void unpack(File source, File destDir) throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException, IOException
source - File to be unpacked.destDir - Location where to put the unpacked files.org.codehaus.plexus.archiver.manager.NoSuchArchiverException - In case of we don't have an appropriate archiver.IOException - In case of a general IOException.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)
fileName - The name of the file which should be checked.true if the name is part of the non filtered extensions false otherwise.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.