Class ArtifactsPackagingTask
java.lang.Object
org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
org.apache.maven.plugins.war.packaging.ArtifactsPackagingTask
- All Implemented Interfaces:
WarPackagingTask
Handles the artifacts that needs to be packaged in the web application.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<org.apache.maven.artifact.Artifact> static final StringTheextensionspath.private final Stringstatic final StringThemodulespath.static final StringTheservicespath.static final StringThetldpath.Fields inherited from class AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH -
Constructor Summary
ConstructorsConstructorDescriptionArtifactsPackagingTask(Set<org.apache.maven.artifact.Artifact> artifacts, Overlay currentProjectOverlay) -
Method Summary
Modifier and TypeMethodDescriptionfindDuplicates(WarPackagingContext context, Set<org.apache.maven.artifact.Artifact> artifacts) Searches a set of artifacts for duplicate filenames and returns a list of duplicates.voidperformPackaging(WarPackagingContext context) Performs the packaging for the specified task.Methods inherited from class AbstractWarPackagingTask
copyFile, copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
-
Field Details
-
TLD_PATH
-
SERVICES_PATH
-
MODULES_PATH
-
EXTENSIONS_PATH
-
artifacts
-
id
-
-
Constructor Details
-
ArtifactsPackagingTask
-
-
Method Details
-
performPackaging
public void performPackaging(WarPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException Description copied from interface:WarPackagingTaskPerforms 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 List<String> findDuplicates(WarPackagingContext context, 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
-