EnforcerRule, EnforcerRule2public class RequireMavenVersion extends AbstractVersionEnforcer
| Constructor | Description |
|---|---|
RequireMavenVersion() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute(EnforcerRuleHelper helper) |
This is the interface into the rule.
|
getLevel, getMessage, setLevel, setMessagecontainsVersion, enforceVersion, getCacheId, getVersion, isCacheable, isResultValid, setVersionpublic void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRulehelper - 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.