类 DependencyFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
org.springframework.boot.maven.DependencyFilter
- 所有已实现的接口:
org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
- 直接已知子类:
ExcludeFilter,IncludeFilter
public abstract class DependencyFilter
extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
Base class for
ArtifactsFilter based on a FilterableDependency list.- 从以下版本开始:
- 1.2.0
- 作者:
- Stephane Nicoll, David Turanski
-
构造器概要
构造器构造器说明DependencyFilter(List<? extends FilterableDependency> dependencies) Create a new instance with the list ofFilterableDependencyinstance(s) to use. -
方法概要
修饰符和类型方法说明protected final booleanequals(org.apache.maven.artifact.Artifact artifact, FilterableDependency dependency) Check if the specifiedArtifactmatches the specifiedFilterableDependency.Set<org.apache.maven.artifact.Artifact> protected abstract booleanfilter(org.apache.maven.artifact.Artifact artifact) protected final List<? extends FilterableDependency> 从类继承的方法 org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
构造器详细资料
-
DependencyFilter
Create a new instance with the list ofFilterableDependencyinstance(s) to use.- 参数:
dependencies- the source dependencies
-
-
方法详细资料
-
filter
public Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts) throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException - 抛出:
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
-
filter
protected abstract boolean filter(org.apache.maven.artifact.Artifact artifact) -
equals
protected final boolean equals(org.apache.maven.artifact.Artifact artifact, FilterableDependency dependency) Check if the specifiedArtifactmatches the specifiedFilterableDependency. Returnstrueif it should be excluded- 参数:
artifact- the MavenArtifactdependency- theFilterableDependency- 返回:
trueif the artifact matches the dependency
-
getFilters
-