public final class FilterUtils extends Object
Modifier and Type | Method and 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 |
newScopeFilter(Collection<String> rootScopes)
Results in a filter including all rootScopes and their transitive scopes
|
static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter |
newScopeFilter(String rootScope)
Results in a filter including the rootScope and its transitive scopes
|
static void |
reportFilteringStatistics(Collection<org.apache.maven.artifact.resolver.filter.ArtifactFilter> filters,
org.slf4j.Logger logger) |
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)
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
public static void reportFilteringStatistics(Collection<org.apache.maven.artifact.resolver.filter.ArtifactFilter> filters, org.slf4j.Logger logger)
public static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter(String rootScope)
rootScope
- the root scopepublic static org.apache.maven.shared.artifact.filter.resolve.ScopeFilter newScopeFilter(Collection<String> rootScopes)
rootScopes
- all root scopesCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.