Package org.apache.maven.enforcer.rules
Class RequireReleaseVersion
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.RequireReleaseVersion
- All Implemented Interfaces:
EnforcerRuleBase
@Named("requireReleaseVersion")
public final class RequireReleaseVersion
extends AbstractStandardEnforcerRule
This rule checks that the current project is not a snapshot.
- Author:
- Brian Fox
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getLog()
void
setFailWhenParentIsSnapshot
(boolean failWhenParentIsSnapshot) void
setLog
(EnforcerLogger arg0) toString()
Methods inherited from class org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
formatLocation, getMessage, setMessage
Methods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
getCacheId, getLevel
-
Constructor Details
-
RequireReleaseVersion
-
-
Method Details
-
execute
- Specified by:
execute
in classAbstractEnforcerRule
- Throws:
EnforcerRuleException
-
setFailWhenParentIsSnapshot
-
toString
-
setLog
- Specified by:
setLog
in interfaceEnforcerRuleBase
-
getLog
-