Package org.apache.maven.plugins.war
Class Overlay
java.lang.Object
org.apache.maven.plugins.war.Overlay
- Direct Known Subclasses:
DefaultOverlay
An overlay is a skeleton WAR added to another WAR project in order to inject a functionality, resources or any other shared component.
Note that a particular WAR dependency can be added multiple times as an overlay with different includes/excludes filter; this allows building a fine grained overwriting policy.
The current project can also be described as an overlay and can not be specified twice. An overlay with no groupId and no artifactId represents the current project.
- Author:
- Stephane Nicoll
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Overlaybooleanorg.apache.maven.artifact.ArtifactString[]getId()String[]getType()inthashCode()booleanSpecify whether this overlay represents the current project or not.booleanvoidsetArtifact(org.apache.maven.artifact.Artifact artifact) voidsetArtifactId(String artifactId) voidsetClassifier(String classifier) voidsetExcludes(String excludes) voidsetExcludes(String[] excludes) voidsetFiltered(boolean filtered) voidsetGroupId(String groupId) voidvoidsetIncludes(String includes) voidsetIncludes(String[] includes) voidsetSkip(boolean skip) voidsetTargetPath(String targetPath) voidbooleantoString()
-
Field Details
-
DEFAULT_INCLUDES
The list of default includes. -
DEFAULT_EXCLUDES
The list of default excludes.
-
-
Constructor Details
-
Overlay
public Overlay()Create instance. -
Overlay
- Parameters:
groupId-groupIdartifactId-artifactId
-
-
Method Details
-
isCurrentProject
public boolean isCurrentProject()Specify whether this overlay represents the current project or not.- Returns:
- true if the overlay represents the current project, false otherwise
-
createInstance
- Returns:
Overlayinstance.
-
getId
- Returns:
- The id.
-
setId
- Parameters:
id- The id.
-
getGroupId
- Returns:
groupId
-
setGroupId
- Parameters:
groupId-groupId
-
getArtifactId
- Returns:
artifactId
-
setArtifactId
- Parameters:
artifactId-artifactId
-
getClassifier
- Returns:
classifier
-
setClassifier
- Parameters:
classifier-classifier
-
getIncludes
- Returns:
includes
-
setIncludes
- Parameters:
includes-includes
-
setIncludes
- Parameters:
includes-includes
-
getExcludes
- Returns:
excludes
-
setExcludes
- Parameters:
excludes-excludes
-
setExcludes
- Parameters:
excludes-excludes
-
isFiltered
public boolean isFiltered()- Returns:
filtered
-
setFiltered
public void setFiltered(boolean filtered) - Parameters:
filtered-filtered
-
shouldSkip
public boolean shouldSkip()- Returns:
skip
-
setSkip
public void setSkip(boolean skip) - Parameters:
skip-skip
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()- Returns:
artifact
-
setArtifact
public void setArtifact(org.apache.maven.artifact.Artifact artifact) - Parameters:
artifact-artifact
-
getTargetPath
- Returns:
targetPath
-
setTargetPath
- Parameters:
targetPath-targetPath
-
getType
- Returns:
type
-
setType
- Parameters:
type-type
-
toString
-
equals
-
hashCode
public int hashCode()
-