Class FilterUtils
java.lang.Object
org.apache.maven.plugins.assembly.utils.FilterUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
(String rootScope) Results in a filter including the rootScope and its transitive scopesstatic org.apache.maven.shared.artifact.filter.resolve.ScopeFilter
newScopeFilter
(Collection<String> rootScopes) Results in a filter including all rootScopes and their transitive scopesstatic void
reportFilteringStatistics
(Collection<org.apache.maven.artifact.resolver.filter.ArtifactFilter> filters, org.slf4j.Logger logger)
-
Method Details
-
filterProjects
-
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 -
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
-