From b427e32c188ecdfed1b0eb75785cb387b13eae26 Mon Sep 17 00:00:00 2001 From: Igor Fedorenko <igor@ifedorenko.com> Date: Wed, 6 Jan 2010 18:51:39 -0500 Subject: [PATCH] Use build timestamp as OSGi version qualifier for SNAPSHOT builds Default maven-bundle-plugin behaviour results in use of the same .SNAPSHOT OSGi bundle version qualifier for all snapshot builds. This causes problems for eclipse update manager and other consumers that rely on OSGi bundle metadata to select "newer" or "best matching" version of jgit bundle. To solve the problem, maven-bundle-plugin is configured to replace .SNAPSHOT with build timestamp in format like 20100106-1234. Change-Id: I0999c7bd68aa2ee74dffaed54a8dc4e1b67cf80d Signed-off-by: Igor Fedorenko <igor@ifedorenko.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 9d5bf712c..b9e00027e 100644 --- a/pom.xml +++ b/pom.xml @@ -156,6 +156,7 @@ <Bundle-Copyright>${jgit-copyright}</Bundle-Copyright> <Bundle-License>http://www.eclipse.org/org/documents/edl-v10.php</Bundle-License> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Bundle-Version>$(replace;$(project.version);-SNAPSHOT;"").$(tstamp;yyyyMMdd-HHmm)</Bundle-Version> <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy> </instructions> </configuration> -- GitLab