Class FilterUtils


  • public final class FilterUtils
    extends Object
    • Method Detail

      • 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)
      • 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