public class RequireReleaseDeps extends AbstractBanDependencies
| Modifier and Type | Field and Description |
|---|---|
List<String> |
excludes
Deprecated.
the visibility will be reduced to private with the next major version
|
boolean |
failWhenParentIsSnapshot
Deprecated.
the visibility will be reduced to private with the next major version
|
List<String> |
includes
Deprecated.
the visibility will be reduced to private with the next major version
|
boolean |
onlyWhenRelease
Deprecated.
the visibility will be reduced to private with the next major version
|
message| Constructor and Description |
|---|
RequireReleaseDeps() |
| Modifier and Type | Method and Description |
|---|---|
protected 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)
Override parent to allow optional ignore of this rule.
|
Set<org.apache.maven.artifact.Artifact> |
filterArtifacts(Set<org.apache.maven.artifact.Artifact> dependencies) |
List<String> |
getExcludes() |
List<String> |
getIncludes() |
boolean |
isFailWhenParentIsSnapshot() |
boolean |
isOnlyWhenRelease() |
void |
setExcludes(List<String> excludes) |
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
void |
setIncludes(List<String> includes) |
void |
setOnlyWhenRelease(boolean onlyWhenRelease) |
getDependenciesToCheck, getErrorMessage, isSearchTransitive, setSearchTransitivegetCacheId, isCacheable, isResultValidgetMessage, setMessagepublic boolean onlyWhenRelease
#setOnlyWhenRelease(boolean)},
#isOnlyWhenRelease()}public boolean failWhenParentIsSnapshot
#setFailWhenParentIsSnapshot(boolean)},
#isFailWhenParentIsSnapshot()}public List<String> excludes
#setExcludes(List)},
#getExcludes()}public List<String> includes
#setIncludes(List)},
#getIncludes()}public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
execute in interface org.apache.maven.enforcer.rule.api.EnforcerRuleexecute in class AbstractBanDependencieshelper - the enforcerRuleHelperorg.apache.maven.enforcer.rule.api.EnforcerRuleException - when an exception occursprotected 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
checkDependencies in class AbstractBanDependenciesdependencies - the dependencieslog - the logorg.apache.maven.enforcer.rule.api.EnforcerRuleException - the enforcer rule exceptionpublic Set<org.apache.maven.artifact.Artifact> filterArtifacts(Set<org.apache.maven.artifact.Artifact> dependencies)
public final boolean isOnlyWhenRelease()
public final void setOnlyWhenRelease(boolean onlyWhenRelease)
public final boolean isFailWhenParentIsSnapshot()
public final void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.