Class SpecificScopesArtifactFilter

  • All Implemented Interfaces:
    org.apache.maven.artifact.resolver.filter.ArtifactFilter

    public class SpecificScopesArtifactFilter
    extends java.lang.Object
    implements org.apache.maven.artifact.resolver.filter.ArtifactFilter
    Filter to only retain objects in the given scope(s).
    • Constructor Summary

      Constructors 
      Constructor Description
      SpecificScopesArtifactFilter​(java.lang.String scopes)
      Takes a comma separated list of scopes to include.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean include​(org.apache.maven.artifact.Artifact artifact)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • compileScope

        private boolean compileScope
      • runtimeScope

        private boolean runtimeScope
      • testScope

        private boolean testScope
      • providedScope

        private boolean providedScope
      • systemScope

        private boolean systemScope
    • Constructor Detail

      • SpecificScopesArtifactFilter

        public SpecificScopesArtifactFilter​(java.lang.String scopes)
        Takes a comma separated list of scopes to include.
        Parameters:
        scopes - A comma separated list of scopes
    • Method Detail

      • include

        public boolean include​(org.apache.maven.artifact.Artifact artifact)
        Specified by:
        include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter