|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
org.apache.maven.plugins.enforcer.AbstractBanDependencies
org.apache.maven.plugins.enforcer.BannedDependencies
public class BannedDependencies
This rule checks that lists of dependencies are not included.
Field Summary | |
---|---|
List |
excludes
Specify the banned dependencies. |
List |
includes
Specify the allowed dependencies. |
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
---|
message |
Constructor Summary | |
---|---|
BannedDependencies()
|
Method Summary | |
---|---|
protected Set |
checkDependencies(Set theDependencies,
org.apache.maven.plugin.logging.Log log)
Checks the set of dependencies against the list of excludes. |
protected boolean |
compareDependency(String[] pattern,
org.apache.maven.artifact.Artifact artifact)
Compares the parsed array of substrings against the artifact. |
List |
getExcludes()
Gets the excludes. |
List |
getIncludes()
Gets the includes. |
void |
setExcludes(List theExcludes)
Sets the excludes. |
void |
setIncludes(List theIncludes)
Sets the includes. |
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractBanDependencies |
---|
execute, getDependenciesToCheck, getErrorMessage, getMessage, isSearchTransitive, setMessage, setSearchTransitive |
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule |
---|
getCacheId, isCacheable, isResultValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public List excludes
groupId[:artifactId][:version]
.
Any of the sections can be a wildcard by using '*' (ie group:*:1.0)
public List includes
groupId[:artifactId][:version]
.
Any of the sections can be a wildcard by using '*' (ie group:*:1.0)
Constructor Detail |
---|
public BannedDependencies()
Method Detail |
---|
protected Set checkDependencies(Set theDependencies, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
AbstractBanDependencies
checkDependencies
in class AbstractBanDependencies
theDependencies
- the dependencieslog
- the log
EnforcerRuleException
- the enforcer rule exceptionprotected boolean compareDependency(String[] pattern, org.apache.maven.artifact.Artifact artifact) throws EnforcerRuleException
pattern
- the array of patternsartifact
- the artifact
true
if the artifact matches one of the patterns
EnforcerRuleException
- the enforcer rule exceptionpublic List getExcludes()
public void setExcludes(List theExcludes)
theExcludes
- the excludes to setpublic List getIncludes()
public void setIncludes(List theIncludes)
theIncludes
- the includes to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |