Class ExclusionArtifactFilter

java.lang.Object
org.apache.maven.artifact.resolver.filter.ExclusionArtifactFilter
All Implemented Interfaces:
ArtifactFilter

public class ExclusionArtifactFilter extends Object implements ArtifactFilter
Filter to exclude from a list of artifact patterns.
  • Field Details

  • Constructor Details

    • ExclusionArtifactFilter

      public ExclusionArtifactFilter(List<Exclusion> exclusions)
  • Method Details

    • include

      public boolean include(Artifact artifact)
      Specified by:
      include in interface ArtifactFilter
    • toPredicate

      private static Predicate<Artifact> toPredicate(Exclusion exclusion)
    • createPathProxy

      private static Path createPathProxy(String value)
      In order to reuse the glob matcher from the filesystem, we need to create Path instances. Those are only used with the toString method. This hack works because the only system-dependent thing is the path separator which should not be part of the groupId or artifactId.