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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetActTransitivelyPattern(boolean actTransitivelyPattern) Used bytransform(PatternExclusionsFilter)andtransform(PatternInclusionsFilter)Determines whether the include/exclude patterns will be applied to the transitive path of a given artifact.voidsetIncludeNullScope(boolean includeNullScope) Used bytransform(ScopeFilter)When filtering on artifacts it is possible that the scope is unknown.org.apache.maven.artifact.resolver.filter.ArtifactFiltertransform(AbstractFilter filter) Transform a custom filter to T specific implementationorg.apache.maven.artifact.resolver.filter.AndArtifactFilterTransform the andFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFiltertransform(ExclusionsFilter exclusionsFilter) Transform the exclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFilterTransform the orFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFiltertransform(PatternExclusionsFilter patternExclusionsFilter) Transform the patternExclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFiltertransform(PatternInclusionsFilter patternInclusionsFilter) Transform the paternInclusionsFilter to T specific implementationorg.apache.maven.artifact.resolver.filter.ArtifactFiltertransform(ScopeFilter scopeFilter) Transform the scopeFilter to T specific implementation
-
Field Details
-
includeNullScope
private boolean includeNullScope -
actTransitivelyPattern
private boolean actTransitivelyPattern
-
-
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 tofalseifnull-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 totrueif this artifact should be included/excluded just like one of its ancestors.
-