public class RequireSnapshotVersion extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
RequireSnapshotVersion() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
boolean |
isFailWhenParentIsRelease() |
void |
setFailWhenParentIsRelease(boolean failWhenParentIsRelease) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic RequireSnapshotVersion()
public 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 exceptionpublic boolean isFailWhenParentIsRelease()
public void setFailWhenParentIsRelease(boolean failWhenParentIsRelease)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.