public final class ArtifactMatcher
extends java.lang.Object
BanTransitiveDependencies| Modifier and Type | Class and Description |
|---|---|
static class |
ArtifactMatcher.Pattern |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<ArtifactMatcher.Pattern> |
ignorePatterns |
private java.util.Collection<ArtifactMatcher.Pattern> |
patterns |
| Constructor and Description |
|---|
ArtifactMatcher(java.util.Collection<java.lang.String> patterns,
java.util.Collection<java.lang.String> ignorePatterns)
Construct class by providing patterns as strings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(org.apache.maven.artifact.Artifact artifact)
Check if artifact matches patterns.
|
private java.util.Collection<ArtifactMatcher.Pattern> patterns
private java.util.Collection<ArtifactMatcher.Pattern> ignorePatterns
public ArtifactMatcher(java.util.Collection<java.lang.String> patterns,
java.util.Collection<java.lang.String> ignorePatterns)
java.lang.NullPointerException - if any of the arguments is null