类 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 forArtifactsFilter
based on aFilterableDependency
list.- 从以下版本开始:
- 1.2
构造器概要
构造器 构造器 说明 DependencyFilter(List<? extends org.springframework.boot.maven.FilterableDependency> dependencies)
Create a new instance with the list ofFilterableDependency
instance(s) to use.
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected boolean
equals(org.apache.maven.artifact.Artifact artifact, org.springframework.boot.maven.FilterableDependency dependency)
Check if the specifiedArtifact
matches the specifiedFilterableDependency
.Set
filter(Set artifacts)
protected abstract boolean
filter(org.apache.maven.artifact.Artifact artifact)
protected List<? extends org.springframework.boot.maven.FilterableDependency>
getFilters()
构造器详细资料
DependencyFilter
public DependencyFilter(List<? extends org.springframework.boot.maven.FilterableDependency> dependencies)
Create a new instance with the list ofFilterableDependency
instance(s) to use.- 参数:
dependencies
- the source dependencies
方法详细资料
filter
public Set filter(Set 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, org.springframework.boot.maven.FilterableDependency dependency)
Check if the specifiedArtifact
matches the specifiedFilterableDependency
. Returnstrue
if it should be excluded- 参数:
artifact
- the MavenArtifact
dependency
- theFilterableDependency
- 返回:
true
if the artifact matches the dependency
getFilters
protected final List<? extends org.springframework.boot.maven.FilterableDependency> getFilters()