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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_INCLUDESThe list of default includes.
- 
DEFAULT_EXCLUDESThe list of default excludes.
 
- 
- 
Constructor Details- 
Overlaypublic Overlay()Create instance.
- 
Overlay- Parameters:
- groupId-- groupId
- artifactId-- artifactId
 
 
- 
- 
Method Details- 
isCurrentProjectpublic 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
 
- 
isFilteredpublic boolean isFiltered()- Returns:
- filtered
 
- 
setFilteredpublic void setFiltered(boolean filtered) - Parameters:
- filtered-- filtered
 
- 
shouldSkippublic boolean shouldSkip()- Returns:
- skip
 
- 
setSkippublic void setSkip(boolean skip) - Parameters:
- skip-- skip
 
- 
getArtifactpublic org.apache.maven.artifact.Artifact getArtifact()- Returns:
- artifact
 
- 
setArtifactpublic 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
- 
hashCodepublic int hashCode()
 
-