Class MatchingGroupIdFilter

  • All Implemented Interfaces:
    org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter

    public class MatchingGroupIdFilter
    extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
    An ArtifactsFilter that filters by matching groupId.

    Preferred over the GroupIdFilter due to that classes use of String.startsWith(java.lang.String, int) to match on prefix.

    Since:
    1.1
    Author:
    Mark Ingram
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchingGroupIdFilter​(java.lang.String exclude)
      Create a new instance with the CSV groupId values that should be excluded.
    • Method Summary

      Modifier and Type Method Description
      protected java.lang.String getArtifactFeature​(org.apache.maven.artifact.Artifact artifact)  
      • Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter

        compareFeatures, filter, getExcludes, getIncludes, setExcludes, setIncludes
      • Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter

        isArtifactIncluded
      • Methods inherited from class java.lang.Object

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

      • MatchingGroupIdFilter

        public MatchingGroupIdFilter​(java.lang.String exclude)
        Create a new instance with the CSV groupId values that should be excluded.
        Parameters:
        exclude - the group values to exclude
    • Method Detail

      • getArtifactFeature

        protected java.lang.String getArtifactFeature​(org.apache.maven.artifact.Artifact artifact)
        Specified by:
        getArtifactFeature in class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter