All Implemented Interfaces:
ArtifactsFilter

public class TypeFilter extends AbstractArtifactFeatureFilter

TypeFilter class.

Author:
Brian Fox
  • Constructor Details

    • TypeFilter

      public TypeFilter(String include, String exclude)

      Constructor for TypeFilter.

      Parameters:
      include - comma separated list with includes.
      exclude - comma separated list with excludes.
  • 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