public class BanDistributionManagement extends AbstractNonCacheableEnforcerRule
distributionManagement
part. This should be by best practice
only defined once. It could happen that you like to check the parent as well. This can be activated by using the
ignoreParent
which is by default turned off (true
) which means not to check the parent.Constructor and Description |
---|
BanDistributionManagement() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
boolean |
isAllowRepository() |
boolean |
isAllowSite() |
boolean |
isAllowSnapshotRepository() |
boolean |
isIgnoreParent() |
void |
setAllowRepository(boolean allowRepository) |
void |
setAllowSite(boolean allowSite) |
void |
setAllowSnapshotRepository(boolean allowSnapshotRepository) |
void |
setIgnoreParent(boolean ignoreParent) |
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public BanDistributionManagement()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
helper
- The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException
- the enforcer rule exceptionpublic boolean isIgnoreParent()
public void setIgnoreParent(boolean ignoreParent)
public boolean isAllowRepository()
public void setAllowRepository(boolean allowRepository)
public boolean isAllowSnapshotRepository()
public void setAllowSnapshotRepository(boolean allowSnapshotRepository)
public boolean isAllowSite()
public void setAllowSite(boolean allowSite)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.