Class DefaultVersionPolicy
- java.lang.Object
-
- org.apache.maven.shared.release.policies.DefaultVersionPolicy
-
- All Implemented Interfaces:
VersionPolicy
@Component(role=VersionPolicy.class, hint="default") public class DefaultVersionPolicy extends java.lang.Object implements VersionPolicy
-
-
Constructor Summary
Constructors Constructor Description DefaultVersionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionPolicyResult
getDevelopmentVersion(VersionPolicyRequest request)
Calculation of the next development version from release state.VersionPolicyResult
getReleaseVersion(VersionPolicyRequest request)
Calculation of the release version from development state.
-
-
-
Method Detail
-
getReleaseVersion
public VersionPolicyResult getReleaseVersion(VersionPolicyRequest request) throws PolicyException, VersionParseException
Description copied from interface:VersionPolicy
Calculation of the release version from development state.- Specified by:
getReleaseVersion
in interfaceVersionPolicy
- Throws:
PolicyException
VersionParseException
-
getDevelopmentVersion
public VersionPolicyResult getDevelopmentVersion(VersionPolicyRequest request) throws PolicyException, VersionParseException
Description copied from interface:VersionPolicy
Calculation of the next development version from release state.- Specified by:
getDevelopmentVersion
in interfaceVersionPolicy
- Throws:
PolicyException
VersionParseException
-
-