Class ArtifactMatcher
- java.lang.Object
-
- org.apache.maven.plugins.enforcer.utils.ArtifactMatcher
-
public final class ArtifactMatcher extends Object
This class is used for matching Artifacts against a list of patterns.- Author:
- Jakub Senko
- See Also:
BanTransitiveDependencies
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArtifactMatcher.Pattern
-
Constructor Summary
Constructors Constructor Description ArtifactMatcher(Collection<String> patterns, Collection<String> ignorePatterns)
Construct class by providing patterns as strings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(org.apache.maven.artifact.Artifact artifact)
Check if artifact matches patterns.
-
-
-
Constructor Detail
-
ArtifactMatcher
public ArtifactMatcher(Collection<String> patterns, Collection<String> ignorePatterns)
Construct class by providing patterns as strings. Empty strings are ignored.- Throws:
NullPointerException
- if any of the arguments is null
-
-