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 VersionPolicyResultgetDevelopmentVersion(VersionPolicyRequest request)Calculation of the next development version from release state.VersionPolicyResultgetReleaseVersion(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:VersionPolicyCalculation of the release version from development state.- Specified by:
getReleaseVersionin interfaceVersionPolicy- Throws:
PolicyExceptionVersionParseException
-
getDevelopmentVersion
public VersionPolicyResult getDevelopmentVersion(VersionPolicyRequest request) throws PolicyException, VersionParseException
Description copied from interface:VersionPolicyCalculation of the next development version from release state.- Specified by:
getDevelopmentVersionin interfaceVersionPolicy- Throws:
PolicyExceptionVersionParseException
-
-