public class RequireNoRepositories extends AbstractNonCacheableEnforcerRule
Modifier and Type | Field and Description |
---|---|
List<String> |
allowedPluginRepositories
Specify explicitly allowed plugin repositories.
|
List<String> |
allowedRepositories
Specify explicitly allowed non-plugin repositories.
|
boolean |
allowSnapshotPluginRepositories
Whether to allow plugin repositories which only resolve snapshots.
|
boolean |
allowSnapshotRepositories
Whether to allow repositories which only resolve snapshots.
|
boolean |
banPluginRepositories
Whether to ban plugin repositories.
|
boolean |
banRepositories
Whether to ban non-plugin repositories.
|
message
Constructor and Description |
---|
RequireNoRepositories() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
getCacheId, isCacheable, isResultValid
public boolean banRepositories
public boolean banPluginRepositories
public List<String> allowedRepositories
public List<String> allowedPluginRepositories
public boolean allowSnapshotRepositories
public boolean allowSnapshotPluginRepositories
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 exceptionCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.