public abstract class AbstractBanDependencies extends AbstractNonCacheableEnforcerRule
message| 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(org.apache.maven.enforcer.rule.api.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, isResultValidgetMessage, setMessagepublic void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
helper - the helperorg.apache.maven.enforcer.rule.api.EnforcerRuleException - 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 org.apache.maven.enforcer.rule.api.EnforcerRuleException
dependencies - the dependencieslog - the logorg.apache.maven.enforcer.rule.api.EnforcerRuleException - the enforcer rule exceptionpublic boolean isSearchTransitive()
public void setSearchTransitive(boolean theSearchTransitive)
theSearchTransitive - the searchTransitive to setCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.