Class PatternExclusionsFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.resolve.PatternExclusionsFilter
- All Implemented Interfaces:
TransformableFilter
A simple filter to exclude artifacts from a list of patterns. The artifact pattern syntax is of the form:
[groupId]:[artifactId]:[extension]:[version]
Where each pattern segment is optional and supports full and partial *
wildcards. An empty pattern
segment is treated as an implicit wildcard. Version can be a range in case a VersionScheme
is specified.
For example, org.apache.*
would match all artifacts whose group id started with
org.apache.
, and :::*-SNAPSHOT
would match all snapshot artifacts.
- Since:
- 3.0
- Author:
- Robert Scholte
- See Also:
-
PatternExclusionsDependencyFilter
VersionScheme
-
Constructor Summary
ConstructorDescriptionPatternExclusionsFilter
(Collection<String> excludes) The default constructor specifying a collection of pattern based keys which must be excluded. -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<String>
Get the excludes<T> T
transform
(FilterTransformer<T> transformer) Subclasses should include the following code:
-
Constructor Details
-
PatternExclusionsFilter
The default constructor specifying a collection of pattern based keys which must be excluded.- Parameters:
excludes
- the excludes, must not benull
-
-
Method Details
-
getExcludes
Get the excludes- Returns:
- the excluded keys, never
null
-