Class FilterUtils

java.lang.Object
org.apache.maven.plugins.assembly.utils.FilterUtils

public final class FilterUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    filterArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts, List<String> includes, List<String> excludes, boolean strictFiltering, boolean actTransitively, org.slf4j.Logger logger, org.apache.maven.artifact.resolver.filter.ArtifactFilter... additionalFilters)
     
    static Set<org.apache.maven.project.MavenProject>
    filterProjects(Set<org.apache.maven.project.MavenProject> projects, List<String> includes, List<String> excludes, boolean actTransitively, org.slf4j.Logger logger)
     
    static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter
    Results in a filter including the rootScope and its transitive scopes
    static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter
    Results in a filter including all rootScopes and their transitive scopes
    static void
    reportFilteringStatistics(Collection<org.apache.maven.artifact.resolver.filter.ArtifactFilter> filters, org.slf4j.Logger logger)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • filterProjects

      public static Set<org.apache.maven.project.MavenProject> filterProjects(Set<org.apache.maven.project.MavenProject> projects, List<String> includes, List<String> excludes, boolean actTransitively, org.slf4j.Logger logger)
    • filterArtifacts

      public static void filterArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts, List<String> includes, List<String> excludes, boolean strictFiltering, boolean actTransitively, org.slf4j.Logger logger, org.apache.maven.artifact.resolver.filter.ArtifactFilter... additionalFilters) throws InvalidAssemblerConfigurationException
      Throws:
      InvalidAssemblerConfigurationException
    • reportFilteringStatistics

      public static void reportFilteringStatistics(Collection<org.apache.maven.artifact.resolver.filter.ArtifactFilter> filters, org.slf4j.Logger logger)
    • newScopeFilter

      public static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter(String rootScope)
      Results in a filter including the rootScope and its transitive scopes
      Parameters:
      rootScope - the root scope
      Returns:
      the filter
    • newScopeFilter

      public static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter(Collection<String> rootScopes)
      Results in a filter including all rootScopes and their transitive scopes
      Parameters:
      rootScopes - all root scopes
      Returns:
      the filter