public class BannedRepositories extends AbstractNonCacheableEnforcerRule
Constructor and Description |
---|
BannedRepositories() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
protected void |
setAllowedPluginRepositories(List<String> allowedPluginRepositories) |
protected void |
setAllowedRepositories(List<String> allowedRepositories) |
protected void |
setBannedPluginRepositories(List<String> bannedPluginRepositories) |
protected void |
setBannedRepositories(List<String> bannedRepositories) |
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public BannedRepositories()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
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 exceptionprotected void setBannedRepositories(List<String> bannedRepositories)
protected void setBannedPluginRepositories(List<String> bannedPluginRepositories)
protected void setAllowedRepositories(List<String> allowedRepositories)
protected void setAllowedPluginRepositories(List<String> allowedPluginRepositories)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.