public interface WarPackagingContext
Modifier and Type | Method and Description |
---|---|
void |
addResource(String resource)
Add a live resource to the war.
|
boolean |
archiveClasses()
Specify whether the classes resources should be archived in the
WEB-INF/lib of the generated web app. |
void |
deleteOutdatedResources()
Delete outdated resources, ie resources that are found in the war but that were not added by the current
packaging process, then are supposed to be content from a previous run.
|
org.apache.maven.archiver.MavenArchiveConfiguration |
getArchive()
The maven archive configuration to use.
|
org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager()
Returns the archiver manager to use.
|
org.apache.maven.artifact.factory.ArtifactFactory |
getArtifactFactory() |
File |
getClassesDirectory()
Returns the directory holding generated classes.
|
List<String> |
getFilters()
Returns the list of filter files to use.
|
List<org.apache.maven.shared.filtering.FilterWrapper> |
getFilterWrappers() |
org.codehaus.plexus.archiver.jar.JarArchiver |
getJarArchiver()
Returns the Jar archiver needed for archiving classes directory into jar file under WEB-INF/lib.
|
org.apache.maven.plugin.logging.Log |
getLog()
Returns the logger to use to output logging event.
|
org.apache.maven.shared.filtering.MavenFileFilter |
getMavenFileFilter()
Returns the
MavenFileFilter instance to use. |
String |
getOutputFileNameMapping()
Returns the output file name mapping to use, if any.
|
String |
getOutputTimestamp()
Output timestamp for reproducible archive creation.
|
File |
getOverlaysWorkDirectory()
Returns the directory to unpack dependent WARs into if needed.
|
List<String> |
getOwnerIds()
Returns the list of registered overlays for this session.
|
org.apache.maven.project.MavenProject |
getProject()
Returns the maven project.
|
String |
getPropertiesEncoding()
Returns the encoding to use for resources that are properties files.
|
String |
getResourceEncoding()
Returns the encoding to use for resources.
|
org.apache.maven.execution.MavenSession |
getSession()
Returns the Maven session.
|
File |
getWebappDirectory()
Returns the webapp directory.
|
File |
getWebappSourceDirectory()
Returns the main webapp source directory.
|
String[] |
getWebappSourceExcludes()
Returns the webapp source excludes.
|
String[] |
getWebappSourceIncludes()
Returns the webapp source includes.
|
WebappStructure |
getWebappStructure()
Returns the
WebappStructure . |
Boolean |
isFailOnMissingWebXml()
Returns the flag that switch on/off the missing web.xml validation
|
boolean |
isFilteringDeploymentDescriptors() |
boolean |
isNonFilteredExtension(String fileName)
Specify if the given
fileName belongs to the list of extensions that must not be filtered |
boolean |
isUseJvmChmod() |
boolean |
isWebappSourceIncludeEmptyDirectories()
Returns
true if empty directories should be includes, otherwise false |
org.apache.maven.project.MavenProject getProject()
File getWebappDirectory()
File getWebappSourceDirectory()
String[] getWebappSourceIncludes()
boolean isWebappSourceIncludeEmptyDirectories()
true
if empty directories should be includes, otherwise false
true
if empty directories should be includes, otherwise false
String[] getWebappSourceExcludes()
File getClassesDirectory()
boolean archiveClasses()
WEB-INF/lib
of the generated web app.org.apache.maven.plugin.logging.Log getLog()
File getOverlaysWorkDirectory()
org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
String getOutputFileNameMapping()
null
if no file name mapping is set.null
List<String> getFilters()
WebappStructure getWebappStructure()
WebappStructure
.List<String> getOwnerIds()
org.apache.maven.shared.filtering.MavenFileFilter getMavenFileFilter()
MavenFileFilter
instance to use.List<org.apache.maven.shared.filtering.FilterWrapper> getFilterWrappers()
List
of FilterWrapper
boolean isNonFilteredExtension(String fileName)
fileName
belongs to the list of extensions that must not be filteredfileName
- the name of filetrue
if it should not be filtered, false
otherwiseboolean isFilteringDeploymentDescriptors()
org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
ArtifactFactory
org.apache.maven.execution.MavenSession getSession()
String getResourceEncoding()
String getPropertiesEncoding()
boolean isUseJvmChmod()
Boolean isFailOnMissingWebXml()
void addResource(String resource)
mvn clean
when resources are removed.resource
- the resource that is to me marked as not outdateddeleteOutdatedResources()
void deleteOutdatedResources()
mvn clean
when resources are removed.addResource(java.lang.String)
String getOutputTimestamp()
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.