Package org.apache.maven.enforcer.rules
Class RequireSnapshotVersion
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.RequireSnapshotVersion
- All Implemented Interfaces:
EnforcerRuleBase
@Named("requireSnapshotVersion")
public final class RequireSnapshotVersion
extends AbstractStandardEnforcerRule
This rule checks that the current project is not a release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getLog()
void
setFailWhenParentIsRelease
(boolean failWhenParentIsRelease) 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
-
RequireSnapshotVersion
-
-
Method Details
-
execute
- Specified by:
execute
in classAbstractEnforcerRule
- Throws:
EnforcerRuleException
-
setFailWhenParentIsRelease
-
toString
-
setLog
- Specified by:
setLog
in interfaceEnforcerRuleBase
-
getLog
-