Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2010-10-13 13:26:33 +0000
committerMatthias Sohn2010-10-13 13:33:46 +0000
commitf8eb7e16aab4f9a63860d58e1ff7692160dcfb9a (patch)
treeafbfd3a6647bb169459403837d3b5f61b73d4478 /org.eclipse.jgit/pom.xml
parentfb1e500adc011dfaad1a6e68b23a9b254a77bf43 (diff)
downloadjgit-f8eb7e16aab4f9a63860d58e1ff7692160dcfb9a.tar.gz
jgit-f8eb7e16aab4f9a63860d58e1ff7692160dcfb9a.tar.xz
jgit-f8eb7e16aab4f9a63860d58e1ff7692160dcfb9a.zip
Generate correct version for jgit source bundle
The maven 2 build for jgit source bundle didn't create a correct OSGi version string, instead of org.eclipse.jgit.source_0.10.0.<timestamp> the generated OSGi version was org.eclipse.jgit.source_0.10.0.SNAPSHOT This caused trouble when trying to install it from p2 repository. Bug: 327616 Change-Id: Ic27c763ae9a4bcbb5bd6ed9562cd98bb4da3386b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/pom.xml')
-rw-r--r--org.eclipse.jgit/pom.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/org.eclipse.jgit/pom.xml b/org.eclipse.jgit/pom.xml
index 21f832cd03..42cd70b328 100644
--- a/org.eclipse.jgit/pom.xml
+++ b/org.eclipse.jgit/pom.xml
@@ -65,6 +65,7 @@
<properties>
<translate-qualifier/>
+ <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
</properties>
<dependencies>
@@ -91,6 +92,48 @@
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>translate-source-qualifier</id>
+ <phase>generate-resources</phase>
+ <configuration>
+ <tasks>
+ <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
+ <replace file="${source-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>
+ <inherited>true</inherited>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <archive>
+ <manifestFile>${source-bundle-manifest}</manifestFile>
+ </archive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>

Back to the top