Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Aniszczyk2011-05-17 22:05:53 +0000
committerMatthias Sohn2011-05-31 18:04:47 +0000
commit047ce75209d47fd34860d4818c97e0e6e0a0b1b7 (patch)
tree3e17f5813d2ab8bb98618dcfdb5ffcf59e1b4ac2
parent38298ff0f85401604648d94cda9f1804e37789dc (diff)
downloadegit-047ce75209d47fd34860d4818c97e0e6e0a0b1b7.tar.gz
egit-047ce75209d47fd34860d4818c97e0e6e0a0b1b7.tar.xz
egit-047ce75209d47fd34860d4818c97e0e6e0a0b1b7.zip
Add signing support on eclipse.org via build-server profile
The maven properties - signer-input-directory - download-publish-path can be used to inject signing parameters. Also moved plugin version declarations into pluginManagement section in parent pom file. Change-Id: I9edf57017932099876d3aa4c0904d3a75c7d57d7 Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit-updatesite/pom.xml85
-rw-r--r--pom.xml19
2 files changed, 103 insertions, 1 deletions
diff --git a/org.eclipse.egit-updatesite/pom.xml b/org.eclipse.egit-updatesite/pom.xml
index cc377d8c6..e419c01e1 100644
--- a/org.eclipse.egit-updatesite/pom.xml
+++ b/org.eclipse.egit-updatesite/pom.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com>
+ Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com>
+ Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
@@ -31,7 +33,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-4</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
@@ -75,4 +76,86 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>build-server</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.dash.maven</groupId>
+ <artifactId>eclipse-maven-signing-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>pack</id>
+ <configuration>
+ <inputFile>${project.build.directory}/org.eclipse.egit-updatesite-${version}-site.zip</inputFile>
+ </configuration>
+ <phase>package</phase>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>sign</id>
+ <configuration>
+ <inputFile>${project.build.directory}/org.eclipse.egit-updatesite-${version}-site.zip</inputFile>
+ <signerInputDirectory>${signer-input-directory}</signerInputDirectory>
+ </configuration>
+ <phase>package</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>repack</id>
+ <configuration>
+ <inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
+ </configuration>
+ <phase>package</phase>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>fixCheckSums</id>
+ <phase>package</phase>
+ <goals>
+ <goal>fixCheckSums</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy</id>
+ <phase>install</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <delete includeemptydirs="false">
+ <fileset
+ dir="${download-publish-path}">
+ <include name="**" />
+ </fileset>
+ </delete>
+ <copy includeemptydirs="false"
+ todir="${download-publish-path}">
+ <fileset dir="target/checksumFix">
+ <include name="**" />
+ </fileset>
+ </copy>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>
diff --git a/pom.xml b/pom.xml
index 166b2529f..d54198fb9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,6 +70,8 @@
<jetty-site>http://download.eclipse.org/jetty/7.1.6.v20100715/repository/</jetty-site>
<wikitext-site>http://download.eclipse.org/tools/mylyn/update/weekly</wikitext-site>
<orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/S20110124210048/repository</orbit-site>
+ <signer-input-directory>/home/data/httpd/download-staging.priv/egit</signer-input-directory>
+ <download-publish-path>/home/data/httpd/download.eclipse.org/egit/updates-nightly</download-publish-path>
</properties>
<profiles>
@@ -151,6 +153,13 @@
<module>org.eclipse.egit.source-feature</module>
</modules>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven.eclipse.org</id>
+ <url>http://maven.eclipse.org/nexus/content/repositories/milestone-indigo</url>
+ </pluginRepository>
+ </pluginRepositories>
+
<repositories>
<repository>
<id>jgit</id>
@@ -277,6 +286,16 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.dash.maven</groupId>
+ <artifactId>eclipse-maven-signing-plugin</artifactId>
+ <version>1.0.0.0</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>

Back to the top