Class FilterUtils


  • public final class FilterUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FilterUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void filterArtifacts​(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes, boolean strictFiltering, boolean actTransitively, org.slf4j.Logger logger, org.apache.maven.artifact.resolver.filter.ArtifactFilter... additionalFilters)  
      static java.util.Set<org.apache.maven.project.MavenProject> filterProjects​(java.util.Set<org.apache.maven.project.MavenProject> projects, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes, boolean actTransitively, org.slf4j.Logger logger)  
      static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter​(java.lang.String rootScope)
      Results in a filter including the rootScope and its transitive scopes
      static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter​(java.util.Collection<java.lang.String> rootScopes)
      Results in a filter including all rootScopes and their transitive scopes
      static void reportFilteringStatistics​(java.util.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
    • Constructor Detail

      • FilterUtils

        private FilterUtils()
    • Method Detail

      • filterProjects

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

        public static void filterArtifacts​(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
                                           java.util.List<java.lang.String> includes,
                                           java.util.List<java.lang.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​(java.util.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​(java.lang.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​(java.util.Collection<java.lang.String> rootScopes)
        Results in a filter including all rootScopes and their transitive scopes
        Parameters:
        rootScopes - all root scopes
        Returns:
        the filter