diff --git a/org.eclipse.jgit.console/pom.xml b/org.eclipse.jgit.console/pom.xml index 1dea0d8409017ca341068e994c4f767a149e0363..f91793aaf135c53071e62bd067d5b16400d37455 100644 --- a/org.eclipse.jgit.console/pom.xml +++ b/org.eclipse.jgit.console/pom.xml @@ -2,6 +2,7 @@ <!-- Copyright (C) 2009, Google Inc. Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com> + Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and other copyright owners as documented in the project's IP log. This program and the accompanying materials are made available @@ -61,6 +62,10 @@ Console based user interface </description> + <properties> + <translate-qualifier/> + </properties> + <dependencies> <dependency> <groupId>org.eclipse.jgit</groupId> @@ -86,7 +91,7 @@ <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> - <manifestFile>META-INF/MANIFEST.MF</manifestFile> + <manifestFile>${bundle-manifest}</manifestFile> </archive> </configuration> </plugin> diff --git a/org.eclipse.jgit.http.server/pom.xml b/org.eclipse.jgit.http.server/pom.xml index cb49402ae53ef240d532f6a9b0e8e780ff0a51a2..65101b6564e964a29a42f2f5ce7051ebf2f0c2e1 100644 --- a/org.eclipse.jgit.http.server/pom.xml +++ b/org.eclipse.jgit.http.server/pom.xml @@ -2,6 +2,7 @@ <!-- Copyright (C) 2009-2010, Google Inc. Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com> + Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and other copyright owners as documented in the project's IP log. This program and the accompanying materials are made available @@ -61,6 +62,10 @@ Git aware HTTP server implementation. </description> + <properties> + <translate-qualifier/> + </properties> + <dependencies> <dependency> <groupId>org.eclipse.jgit</groupId> @@ -92,7 +97,7 @@ <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> - <manifestFile>META-INF/MANIFEST.MF</manifestFile> + <manifestFile>${bundle-manifest}</manifestFile> </archive> </configuration> </plugin> diff --git a/org.eclipse.jgit.junit/pom.xml b/org.eclipse.jgit.junit/pom.xml index 095d21a2d0228753ea332935772bcddfd73746fc..e2973fa9d6edc5ec0b7f305caec74c11eabfc484 100644 --- a/org.eclipse.jgit.junit/pom.xml +++ b/org.eclipse.jgit.junit/pom.xml @@ -2,6 +2,7 @@ <!-- Copyright (C) 2009, Google Inc. Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com> + Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and other copyright owners as documented in the project's IP log. This program and the accompanying materials are made available @@ -61,6 +62,10 @@ Utility classes to support JUnit testing of JGit applications. </description> + <properties> + <translate-qualifier/> + </properties> + <dependencies> <dependency> <groupId>org.eclipse.jgit</groupId> @@ -92,7 +97,7 @@ <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> - <manifestFile>META-INF/MANIFEST.MF</manifestFile> + <manifestFile>${bundle-manifest}</manifestFile> </archive> </configuration> </plugin> diff --git a/org.eclipse.jgit.packaging/pom.xml b/org.eclipse.jgit.packaging/pom.xml index a32a862d94dc5500f46b73ece0ecf344502abf3e..3c21e26b6fe51a1ea18bcbc98a77a6ceaed90291 100644 --- a/org.eclipse.jgit.packaging/pom.xml +++ b/org.eclipse.jgit.packaging/pom.xml @@ -60,6 +60,7 @@ <properties> <tycho-version>0.6.0</tycho-version> + <eclipse-site>http://download.eclipse.org/releases/galileo</eclipse-site> </properties> <modules> @@ -71,7 +72,7 @@ <repository> <id>galileo</id> <layout>p2</layout> - <url>http://download.eclipse.org/releases/galileo</url> + <url>${eclipse-site}</url> </repository> </repositories> diff --git a/org.eclipse.jgit.ui/pom.xml b/org.eclipse.jgit.ui/pom.xml index a0e9089cea81c5a076c527aacff8b354e834c3b0..04b8049c7fe24f0fb441bd4833fa1985a0393500 100644 --- a/org.eclipse.jgit.ui/pom.xml +++ b/org.eclipse.jgit.ui/pom.xml @@ -2,6 +2,7 @@ <!-- Copyright (C) 2009, Google Inc. Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com> + Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and other copyright owners as documented in the project's IP log. This program and the accompanying materials are made available @@ -61,6 +62,10 @@ AWT/Swing based UI </description> + <properties> + <translate-qualifier/> + </properties> + <dependencies> <dependency> <groupId>org.eclipse.jgit</groupId> @@ -86,7 +91,7 @@ <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> - <manifestFile>META-INF/MANIFEST.MF</manifestFile> + <manifestFile>${bundle-manifest}</manifestFile> </archive> </configuration> </plugin> diff --git a/org.eclipse.jgit/pom.xml b/org.eclipse.jgit/pom.xml index 066002a7fe63825633f2a29f93e1369ed365cb11..0422800afe5c3fc70c8d5090fb39b6229c4a25d9 100644 --- a/org.eclipse.jgit/pom.xml +++ b/org.eclipse.jgit/pom.xml @@ -3,6 +3,7 @@ Copyright (C) 2009, Google Inc. Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com> Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com> + Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and other copyright owners as documented in the project's IP log. This program and the accompanying materials are made available @@ -62,6 +63,10 @@ Repository access and algorithms </description> + <properties> + <translate-qualifier/> + </properties> + <dependencies> <dependency> <groupId>com.jcraft</groupId> @@ -86,7 +91,7 @@ <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> - <manifestFile>META-INF/MANIFEST.MF</manifestFile> + <manifestFile>${bundle-manifest}</manifestFile> </archive> </configuration> </plugin> diff --git a/pom.xml b/pom.xml index d02cafbbe9a8a2709da86e1dd89f4372335d28ac..42630d5e692d6fffc63910f039db776480e36f86 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> @@ -207,6 +210,28 @@ </configuration> </plugin> + <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>