EnforcerRule, EnforcerRule2public class RequireNoRepositories extends AbstractNonCacheableEnforcerRule
| Constructor | Description |
|---|---|
RequireNoRepositories() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute(EnforcerRuleHelper helper) |
This is the interface into the rule.
|
void |
setAllowedPluginRepositories(List<String> allowedPluginRepositories) |
|
void |
setAllowedRepositories(List<String> allowedRepositories) |
|
void |
setAllowSnapshotPluginRepositories(boolean allowSnapshotPluginRepositories) |
|
void |
setAllowSnapshotRepositories(boolean allowSnapshotRepositories) |
|
void |
setBanPluginRepositories(boolean banPluginRepositories) |
|
void |
setBanRepositories(boolean banRepositories) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic final void setBanRepositories(boolean banRepositories)
public final void setBanPluginRepositories(boolean banPluginRepositories)
public final void setAllowedPluginRepositories(List<String> allowedPluginRepositories)
public final void setAllowSnapshotRepositories(boolean allowSnapshotRepositories)
public final void setAllowSnapshotPluginRepositories(boolean allowSnapshotPluginRepositories)
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 exceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.