类 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

      public DependencyFilter(List<? extends FilterableDependency> dependencies)
      Create a new instance with the list of FilterableDependency instance(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 specified Artifact matches the specified FilterableDependency. Returns true if it should be excluded
      参数:
      artifact - the Maven Artifact
      dependency - the FilterableDependency
      返回:
      true if the artifact matches the dependency
    • getFilters

      protected final List<? extends FilterableDependency> getFilters()