From b97a35d7cfbcd70a7eae158f817bfbf7ea81a969 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 31 Aug 2013 00:26:18 +0200 Subject: Update build to use CBI jarsigner plugin The dash signing plugin has been retired hence we need to update our build to use the CBI jarsigner plugin for signing build results. Pack test classes to enable signing them. Also re-enable pack200 for bundle org.eclipse.jgit. WORKAROUND: there is no easy way to run tests with maven-surefire-plugin from signed test-jar so for a quick workaround we will have to add a build step on Hudson so that we can run tests before signing: - first step will do "clean, verify" to compile and run tests - second step will do "install, deploy" with profile "eclipse-sign" and use -DskipTests=true to skip tests since they would hit a SecurityException when unsigned test classes are in same package as signed classes under test - third step will do "clean, install, deploy" on packaging reactor to build features and p2 repository with profile "eclipse-sign" to sign and pack200 all bundles. TODO: Tycho doesn't suport picking up pack200 artifacts via pomDependencies hence we need to find a way to copy them manually and use tycho-extra's tycho-p2-extras-plugin:publish-features-and-bundles to generate the missing p2 metadata. Change-Id: Iec2c5ab3027a3e3f9ecc0d2f99193385177d9025 Signed-off-by: Matthias Sohn --- org.eclipse.jgit.ant.test/pom.xml | 11 +++ org.eclipse.jgit.http.test/pom.xml | 11 +++ org.eclipse.jgit.java7.test/pom.xml | 19 ++++- org.eclipse.jgit.packaging/pom.xml | 155 +++++++++++++++++++++++++++++++++- org.eclipse.jgit.pgm.test/pom.xml | 19 +++++ org.eclipse.jgit.test/pom.xml | 11 +++ org.eclipse.jgit/META-INF/eclipse.inf | 2 - pom.xml | 84 ++++++++++++++++++ 8 files changed, 305 insertions(+), 7 deletions(-) delete mode 100644 org.eclipse.jgit/META-INF/eclipse.inf diff --git a/org.eclipse.jgit.ant.test/pom.xml b/org.eclipse.jgit.ant.test/pom.xml index b6717a25e7..82f45322ac 100644 --- a/org.eclipse.jgit.ant.test/pom.xml +++ b/org.eclipse.jgit.ant.test/pom.xml @@ -91,6 +91,17 @@ src/ + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + maven-surefire-plugin diff --git a/org.eclipse.jgit.http.test/pom.xml b/org.eclipse.jgit.http.test/pom.xml index 31382bcc6c..03fc6d8725 100644 --- a/org.eclipse.jgit.http.test/pom.xml +++ b/org.eclipse.jgit.http.test/pom.xml @@ -112,6 +112,17 @@ + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + maven-surefire-plugin diff --git a/org.eclipse.jgit.java7.test/pom.xml b/org.eclipse.jgit.java7.test/pom.xml index c6b25d4ab8..2120db0844 100644 --- a/org.eclipse.jgit.java7.test/pom.xml +++ b/org.eclipse.jgit.java7.test/pom.xml @@ -105,10 +105,21 @@ - maven-surefire-plugin - - -Xmx256m -Dfile.encoding=UTF-8 - + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + + + maven-surefire-plugin + + -Xmx256m -Dfile.encoding=UTF-8 + diff --git a/org.eclipse.jgit.packaging/pom.xml b/org.eclipse.jgit.packaging/pom.xml index b52011133b..37d0fee4fe 100644 --- a/org.eclipse.jgit.packaging/pom.xml +++ b/org.eclipse.jgit.packaging/pom.xml @@ -1,6 +1,6 @@ @@ -312,6 +322,22 @@ info + + + org.eclipse.cbi.maven.plugins + eclipse-jarsigner-plugin + 1.0.4 + + + org.eclipse.tycho.extras + tycho-pack200a-plugin + 0.18.0 + + + org.eclipse.tycho.extras + tycho-pack200b-plugin + 0.18.0 + @@ -494,6 +520,64 @@ + + eclipse-sign + + + + org.eclipse.tycho.extras + tycho-pack200a-plugin + + + + jar + + + + + pack200-normalize + + normalize + + verify + + + + + org.eclipse.tycho.extras + tycho-pack200b-plugin + + + + jar + + + + + pack200-pack + + pack + + verify + + + + + + -- cgit v1.2.3