Class ArtifactIncludeFilterTransformer
java.lang.Object
org.apache.maven.shared.artifact.filter.resolve.transform.ArtifactIncludeFilterTransformer
- All Implemented Interfaces:
FilterTransformer<org.apache.maven.artifact.resolver.filter.ArtifactFilter>
public class ArtifactIncludeFilterTransformer
extends Object
implements FilterTransformer<org.apache.maven.artifact.resolver.filter.ArtifactFilter>
Makes it possible to use the TransformableFilters for Aether and as classic Maven ArtifactFilter.
Note: the
AndFilter
and ExclusionsFilter
are transformed to ArtifactFilter
implementations of Maven Core- Since:
- 3.0
- Author:
- Robert Scholte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setActTransitivelyPattern
(boolean actTransitivelyPattern) Used bytransform(PatternExclusionsFilter)
andtransform(PatternInclusionsFilter)
Determines whether the include/exclude patterns will be applied to the transitive path of a given artifact.void
setIncludeNullScope
(boolean includeNullScope) Used bytransform(ScopeFilter)
When filtering on artifacts it is possible that the scope is unknown.org.apache.maven.artifact.resolver.filter.ArtifactFilter
transform
(AbstractFilter filter) Transform a custom filter to T specific implementationorg.apache.maven.artifact.resolver.filter.AndArtifactFilter
Transform the andFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilter
transform
(ExclusionsFilter exclusionsFilter) Transform the exclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilter
Transform the orFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilter
transform
(PatternExclusionsFilter patternExclusionsFilter) Transform the patternExclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilter
transform
(PatternInclusionsFilter patternInclusionsFilter) Transform the paternInclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilter
transform
(ScopeFilter scopeFilter) Transform the scopeFilter to T specific implementation
-
Constructor Details
-
ArtifactIncludeFilterTransformer
public ArtifactIncludeFilterTransformer()
-
-
Method Details
-
setIncludeNullScope
public void setIncludeNullScope(boolean includeNullScope) Used bytransform(ScopeFilter)
When filtering on artifacts it is possible that the scope is unknown. Decide if artifact should be included if its scope isnull
, default istrue
- Parameters:
includeNullScope
- set tofalse
ifnull
-scoped Artifacts should not be included
-
setActTransitivelyPattern
public void setActTransitivelyPattern(boolean actTransitivelyPattern) Used bytransform(PatternExclusionsFilter)
andtransform(PatternInclusionsFilter)
Determines whether the include/exclude patterns will be applied to the transitive path of a given artifact. Iftrue
, and the current artifact is a transitive dependency brought in by another artifact which matches an inclusion or exclusion pattern, then the current artifact has the same inclusion/exclusion logic applied to it as well. Default isfalse
- Parameters:
actTransitivelyPattern
- set totrue
if this artifact should be included/excluded just like one of its ancestors.
-