Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2010-01-06 23:51:39 +0000
committerShawn O. Pearce2010-01-07 02:15:42 +0000
commitb427e32c188ecdfed1b0eb75785cb387b13eae26 (patch)
tree6738f9188b3a096a2e3ed86ea6334db5eab52737 /pom.xml
parentf50294461b6d59f051bfebc68271155c47a7d4d8 (diff)
downloadjgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.tar.gz
jgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.tar.xz
jgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.zip
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>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 9d5bf712c0..b9e00027e1 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>

Back to the top