All Implemented Interfaces:
ArtifactsFilter

public class GroupIdFilter extends AbstractArtifactFeatureFilter
Filter on GroupId Name.
Since:
2.0
Author:
clove
  • Constructor Details

    • GroupIdFilter

      public GroupIdFilter(String include, String exclude)
      Construction will setup the super call with a filtertype of 'GroupId'
      Parameters:
      include - comma separated list of groupIds to include, may be null
      exclude - comma separated list of groupIds to exclude, may be null
  • Method Details

    • getArtifactFeature

      protected String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
      Should return the type or classifier of the given artifact, so that we can filter it
      Specified by:
      getArtifactFeature in class AbstractArtifactFeatureFilter
      Parameters:
      artifact - artifact to return type or classifier of
      Returns:
      type or classifier
    • compareFeatures

      protected boolean compareFeatures(String lhs, String rhs)
      Allows Feature comparison to be customized
      Overrides:
      compareFeatures in class AbstractArtifactFeatureFilter
      Parameters:
      lhs - String artifact's feature
      rhs - String feature from exclude or include list
      Returns:
      boolean true if features match