public abstract class AbstractBanDependencies extends AbstractNonCacheableEnforcerRule
Constructor and Description |
---|
AbstractBanDependencies() |
Modifier and Type | Method and Description |
---|---|
protected abstract Set<Artifact> |
checkDependencies(Set<Artifact> dependencies,
Log log)
Checks the set of dependencies against the list of excludes.
|
void |
execute(EnforcerRuleHelper helper) |
protected Set<Artifact> |
getDependenciesToCheck(MavenProject project) |
protected CharSequence |
getErrorMessage(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
EnforcerRuleException
protected CharSequence getErrorMessage(Artifact artifact)
protected Set<Artifact> getDependenciesToCheck(MavenProject project)
protected abstract Set<Artifact> checkDependencies(Set<Artifact> dependencies, 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–2017 The Apache Software Foundation. All rights reserved.