Class ArtifactsPackagingTask
- java.lang.Object
-
- org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
-
- org.apache.maven.plugins.war.packaging.ArtifactsPackagingTask
-
- All Implemented Interfaces:
WarPackagingTask
public class ArtifactsPackagingTask extends AbstractWarPackagingTask
Handles the artifacts that needs to be packaged in the web application.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<org.apache.maven.artifact.Artifact>
artifacts
static java.lang.String
EXTENSIONS_PATH
Theextensions
path.private java.lang.String
id
static java.lang.String
MODULES_PATH
Themodules
path.static java.lang.String
SERVICES_PATH
Theservices
path.static java.lang.String
TLD_PATH
Thetld
path.-
Fields inherited from class org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH
-
-
Constructor Summary
Constructors Constructor Description ArtifactsPackagingTask(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, Overlay currentProjectOverlay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<java.lang.String>
findDuplicates(WarPackagingContext context, java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
Searches a set of artifacts for duplicate filenames and returns a list of duplicates.void
performPackaging(WarPackagingContext context)
Performs the packaging for the specified task.-
Methods inherited from class org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
-
-
-
-
Field Detail
-
TLD_PATH
public static final java.lang.String TLD_PATH
Thetld
path.- See Also:
- Constant Field Values
-
SERVICES_PATH
public static final java.lang.String SERVICES_PATH
Theservices
path.- See Also:
- Constant Field Values
-
MODULES_PATH
public static final java.lang.String MODULES_PATH
Themodules
path.- See Also:
- Constant Field Values
-
EXTENSIONS_PATH
public static final java.lang.String EXTENSIONS_PATH
Theextensions
path.- See Also:
- Constant Field Values
-
artifacts
private final java.util.Set<org.apache.maven.artifact.Artifact> artifacts
-
id
private final java.lang.String id
-
-
Method Detail
-
performPackaging
public void performPackaging(WarPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:WarPackagingTask
Performs the packaging for the specified task. The task is responsible to update the packaging context, namely with the files that have been copied.- Parameters:
context
- the packaging context- Throws:
org.apache.maven.plugin.MojoExecutionException
- if an error occurred
-
findDuplicates
private java.util.List<java.lang.String> findDuplicates(WarPackagingContext context, java.util.Set<org.apache.maven.artifact.Artifact> artifacts) throws org.codehaus.plexus.interpolation.InterpolationException
Searches a set of artifacts for duplicate filenames and returns a list of duplicates.- Parameters:
context
- the packaging contextartifacts
- set of artifacts- Returns:
- List of duplicated artifacts as bundling file names
- Throws:
org.codehaus.plexus.interpolation.InterpolationException
-
-