Skip to content

Commit 13e1339

Browse files
committed
FELIX-6744 Configure policy for maven release plugin
- Configure OddEvenVersionPolicy based on the undocumented rule The reason is the difference in how maven and osgi orders versions with a qualifier. In maven 1.0.19-SNAPSHOT is lower than 1.0.19 while in OSGi it is higher. That sometimes confuses tooling. For example, in case you have already installed the snapshot version and want to install the final version and use OSGi tooling based on "install the highest version" it will keep the snapshot version installed. To avoid all of that we decided to just use even numbers for releases. Its cheap and avoids all these problems.
1 parent 29d4ea1 commit 13e1339

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pom/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@
175175
<plugin>
176176
<groupId>org.apache.maven.plugins</groupId>
177177
<artifactId>maven-release-plugin</artifactId>
178+
<configuration>
179+
<projectVersionPolicyId>OddEvenVersionPolicy</projectVersionPolicyId>
180+
</configuration>
178181
</plugin>
179182
<plugin>
180183
<groupId>org.apache.geronimo.genesis.plugins</groupId>

0 commit comments

Comments
 (0)