Skip to content

Commit

Permalink
Dropping documentation part because of apache#169
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Mar 7, 2023
1 parent 6fdeaba commit e0ebc3a
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions maven-release-plugin/src/site/apt/usage.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -152,42 +152,3 @@ mvn -Dusername=your_scm_username release:prepare
...
</project>
+-------------------

* Automatically calculating the released version

The Release Plugin automatically calculates the version that is released and the next development version
(i.e. the next SNAPSHOT). If nothing is configured this is done by the default VersionPolicy which compares
and increments versions for a common java versioning scheme.

It is possible to select a different VersionPolicy by specifying its id.

+-------------------
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<projectVersionPolicyId>SemVerVersionPolicy</projectVersionPolicyId>
</configuration>
</plugin>
</plugins>
...
</build>
...
</project>
+-------------------

There are 3 VersionPolicies bundled with the Release Plugin:

* default: \
This compares and increments versions for a common java versioning scheme.

* OddEvenVersionPolicy: \
A version policy that proposes even version numbers only for releases and odd numbers for development.

* SemVerVersionPolicy: \
A version policy that enforce SemVer format and upgrades minor element for next development version.

0 comments on commit e0ebc3a

Please sign in to comment.