@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() |
File |
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.
|
String[] |
getPackagingExcludes() |
String[] |
getPackagingIncludes() |
boolean |
isNonFilteredExtension(String fileName) |
void |
setApplicationXml(File applicationXml) |
void |
setPackagingExcludes(String packagingExcludes) |
void |
setPackagingIncludes(String packagingIncludes) |
void |
unpack(File source,
File destDir,
Collection<String> outdatedResources)
Unpacks the module into the EAR structure.
|
getAllEarModules, getJbossConfiguration, getModules, getOutputFileNameMapping, getProject, getProvidedEarModules, getWorkDirectory@Parameter protected String escapeString
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractEarMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic File getApplicationXml()
applicationXmlpublic void setApplicationXml(File 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, Collection<String> outdatedResources) throws org.codehaus.plexus.archiver.ArchiverException, org.codehaus.plexus.archiver.manager.NoSuchArchiverException, IOException
source - file to be unpackeddestDir - where to put the unpacked filesoutdatedResources - currently outdated resourcesorg.codehaus.plexus.archiver.ArchiverException - a corrupt archiveorg.codehaus.plexus.archiver.manager.NoSuchArchiverException - if we don't have an appropriate archiverIOException - in case of a general IOExceptionpublic boolean isNonFilteredExtension(String fileName)
fileName - the name of the file which should be checkedtrue if the name is part of the non filtered extensions; false otherwiseCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.