public class ScopeFilter extends Object implements MavenResolutionFilter
Constructor and Description |
---|
ScopeFilter()
Creates a filter which accepts all artifacts with no scope defined, that
is their scope is an empty string.
|
ScopeFilter(String... scopes)
Creates a filter which accepts all artifacts that their scope is one of
the specified.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MavenDependency dependency) |
MavenResolutionFilter |
configure(Collection<MavenDependency> dependencies) |
public ScopeFilter()
public ScopeFilter(String... scopes)
scopes
- The enumeration of allowed scopespublic MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
configure
in interface MavenResolutionFilter
public boolean accept(MavenDependency dependency)
accept
in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>
accept
in interface MavenResolutionFilter
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.