public class RequireReleaseVersion extends AbstractNonCacheableEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
private boolean |
failWhenParentIsSnapshot
Allows this rule to fail when the parent is defined as a snapshot.
|
| Constructor and Description |
|---|
RequireReleaseVersion() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper theHelper)
This is the interface into the rule.
|
private org.apache.maven.project.MavenProject |
getProject(EnforcerRuleHelper helper) |
boolean |
isFailWhenParentIsSnapshot() |
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessageprivate boolean failWhenParentIsSnapshot
#setFailWhenParentIsSnapshot(boolean)},
#isFailWhenParentIsSnapshot()}public void execute(EnforcerRuleHelper theHelper) throws EnforcerRuleException
EnforcerRuletheHelper - 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 exceptionprivate org.apache.maven.project.MavenProject getProject(EnforcerRuleHelper helper) throws EnforcerRuleException
helper - MavenProject.EnforcerRuleExceptionpublic final boolean isFailWhenParentIsSnapshot()
public final void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)