org.apache.maven.plugins.enforcer
Class RequireNoRepositories
java.lang.Object
org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
org.apache.maven.plugins.enforcer.RequireNoRepositories
- All Implemented Interfaces:
- EnforcerRule
public class RequireNoRepositories
- extends AbstractNonCacheableEnforcerRule
This rule checks that this pom or its parents don't define a repository.
- Author:
- Brian Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
banRepositories
public boolean banRepositories
- Whether to ban non-plugin repositories. By default they are banned.
banPluginRepositories
public boolean banPluginRepositories
- Whether to ban plugin repositories. By default they are banned.
allowedRepositories
public java.util.List allowedRepositories
- Specify explicitly allowed non-plugin repositories. This is a list of ids.
allowedPluginRepositories
public java.util.List allowedPluginRepositories
- Specify explicitly allowed plugin repositories. This is a list of ids.
RequireNoRepositories
public RequireNoRepositories()
execute
public void execute(EnforcerRuleHelper helper)
throws EnforcerRuleException
- Throws:
EnforcerRuleException
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.