aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2010-01-23 01:03:37 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2010-01-23 01:29:21 +0100
commit407fe631aec08ec4b0f24462b3fa2cee67a83914 (patch)
tree48da86fc4eb8986fc3b718071e3c55f0f8b2222f /pom.xml
parent86e0c1e036d4a04e396947842d4760fb6efb23ea (diff)
downloadjgit-407fe631aec08ec4b0f24462b3fa2cee67a83914.tar.gz
jgit-407fe631aec08ec4b0f24462b3fa2cee67a83914.zip
Use build timestamp as OSGi version qualifier
Translate the version qualifier using maven-antrun-plugin since we want manifest-first and currently cannot rely on Tycho for the JGit build. Introduce property for Eclipse p2 repository to enable builds against other Eclipse versions. Change-Id: I62c4e77ae91fe17f56c5a5338d53828d4e225395 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index d02cafbbe9..42630d5e69 100644
--- a/pom.xml
+++ b/pom.xml
@@ -127,6 +127,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
+ <bundle-manifest>${project.build.directory}/META-INF/MANIFEST.MF</bundle-manifest>
+
<jsch-CQ>CQ 3493</jsch-CQ>
<jsch-version>0.1.41</jsch-version>
@@ -209,6 +212,28 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>translate-qualifier</id>
+ <phase>generate-resources</phase>
+ <configuration>
+ <tasks unless="${translate-qualifier}">
+ <copy file="META-INF/MANIFEST.MF" tofile="${bundle-manifest}" overwrite="true"/>
+ <replace file="${bundle-manifest}">
+ <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
+ </replace>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>