public abstract class AbstractBanDependencies extends AbstractNonCacheableEnforcerRule
Constructor and Description |
---|
AbstractBanDependencies() |
Modifier and Type | Method and Description |
---|---|
protected abstract Set<org.apache.maven.artifact.Artifact> |
checkDependencies(Set<org.apache.maven.artifact.Artifact> dependencies,
org.apache.maven.plugin.logging.Log log)
Checks the set of dependencies against the list of excludes.
|
void |
execute(EnforcerRuleHelper helper)
Execute the rule.
|
protected Set<org.apache.maven.artifact.Artifact> |
getDependenciesToCheck(org.apache.maven.project.MavenProject project) |
protected CharSequence |
getErrorMessage(org.apache.maven.artifact.Artifact artifact) |
boolean |
isSearchTransitive()
Checks if is search transitive.
|
void |
setSearchTransitive(boolean theSearchTransitive)
Sets the search transitive.
|
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public AbstractBanDependencies()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
helper
- the helperEnforcerRuleException
- the enforcer rule exceptionprotected CharSequence getErrorMessage(org.apache.maven.artifact.Artifact artifact)
protected Set<org.apache.maven.artifact.Artifact> getDependenciesToCheck(org.apache.maven.project.MavenProject project)
protected abstract Set<org.apache.maven.artifact.Artifact> checkDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
dependencies
- the dependencieslog
- the logEnforcerRuleException
- the enforcer rule exceptionpublic boolean isSearchTransitive()
public void setSearchTransitive(boolean theSearchTransitive)
theSearchTransitive
- the searchTransitive to setCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.