aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2010-01-06 18:51:39 (EST)
committerShawn O. Pearce2010-01-06 21:15:42 (EST)
commitb427e32c188ecdfed1b0eb75785cb387b13eae26 (patch)
tree6738f9188b3a096a2e3ed86ea6334db5eab52737
parentf50294461b6d59f051bfebc68271155c47a7d4d8 (diff)
downloadjgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.zip
jgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.tar.gz
jgit-b427e32c188ecdfed1b0eb75785cb387b13eae26.tar.bz2
Use build timestamp as OSGi version qualifier for SNAPSHOT buildsrefs/changes/82/182/3
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>
-rw-r--r--pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 9d5bf71..b9e0002 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>