EnforcerRule, EnforcerRule2BannedDependencies, NoSnapshots, RequireReleaseDepspublic abstract class AbstractBanDependencies extends AbstractNonCacheableEnforcerRule
| Constructor | Description |
|---|---|
AbstractBanDependencies() |
| Modifier and Type | Method | 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.ProjectBuildingRequest projectBuildingRequest) |
|
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, isResultValidgetLevel, getMessage, setLevel, setMessagepublic 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.ProjectBuildingRequest projectBuildingRequest)
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–2019 The Apache Software Foundation. All rights reserved.