public class ScopeArtifactFilter extends Object implements org.apache.maven.artifact.resolver.filter.ArtifactFilter, StatisticsReportingArtifactFilter
ArtifactFilter
implementation that selects artifacts based on their
scopes.
Constructor and Description |
---|
ScopeArtifactFilter()
Constructor that is meant to be used with fine-grained manipulation to
enable/disable specific scopes using the associated mutator methods.
|
ScopeArtifactFilter(String scope)
Constructor that uses the implied nature of Maven scopes to determine which
artifacts to include.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMissedCriteria() |
boolean |
include(org.apache.maven.artifact.Artifact artifact) |
boolean |
isIncludeCompileScope() |
boolean |
isIncludeProvidedScope() |
boolean |
isIncludeRuntimeScope() |
boolean |
isIncludeSystemScope() |
boolean |
isIncludeTestScope() |
void |
reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger) |
void |
reportMissedCriteria(org.codehaus.plexus.logging.Logger logger) |
ScopeArtifactFilter |
reset()
Reset hit counts and tracking of filtered artifacts, BUT NOT ENABLED SCOPES.
|
ScopeArtifactFilter |
setIncludeCompileScope(boolean includeCompileScope) |
ScopeArtifactFilter |
setIncludeCompileScopeWithImplications(boolean enabled)
Manages the following scopes:
system
provided
compile
|
ScopeArtifactFilter |
setIncludeNullScope(boolean enable)
Determine whether artifacts that have a null scope are included or excluded.
|
ScopeArtifactFilter |
setIncludeProvidedScope(boolean includeProvidedScope) |
ScopeArtifactFilter |
setIncludeRuntimeScope(boolean includeRuntimeScope) |
ScopeArtifactFilter |
setIncludeRuntimeScopeWithImplications(boolean enabled)
Manages the following scopes:
compile
runtime
|
ScopeArtifactFilter |
setIncludeSystemScope(boolean includeSystemScope) |
ScopeArtifactFilter |
setIncludeTestScope(boolean includeTestScope) |
ScopeArtifactFilter |
setIncludeTestScopeWithImplications(boolean enabled)
Manages the following scopes:
system
provided
compile
runtime
test
|
String |
toString() |
public ScopeArtifactFilter()
public ScopeArtifactFilter(String scope)
public boolean include(org.apache.maven.artifact.Artifact artifact)
include
in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter
public void reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger)
reportFilteredArtifacts
in interface StatisticsReportingArtifactFilter
public void reportMissedCriteria(org.codehaus.plexus.logging.Logger logger)
reportMissedCriteria
in interface StatisticsReportingArtifactFilter
public boolean hasMissedCriteria()
hasMissedCriteria
in interface StatisticsReportingArtifactFilter
public boolean isIncludeCompileScope()
public ScopeArtifactFilter setIncludeCompileScope(boolean includeCompileScope)
public boolean isIncludeRuntimeScope()
public ScopeArtifactFilter setIncludeRuntimeScope(boolean includeRuntimeScope)
public boolean isIncludeTestScope()
public ScopeArtifactFilter setIncludeTestScope(boolean includeTestScope)
public boolean isIncludeProvidedScope()
public ScopeArtifactFilter setIncludeProvidedScope(boolean includeProvidedScope)
public boolean isIncludeSystemScope()
public ScopeArtifactFilter setIncludeSystemScope(boolean includeSystemScope)
public ScopeArtifactFilter setIncludeCompileScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeRuntimeScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeTestScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeNullScope(boolean enable)
public ScopeArtifactFilter reset()
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.