NEW - bug 334258: Update UDC Releng to use Tycho
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334258
diff --git a/releng/org.eclipse.epp.usagedata.repository/pom.xml b/releng/org.eclipse.epp.usagedata.repository/pom.xml
index f6a01e6..0c11668 100644
--- a/releng/org.eclipse.epp.usagedata.repository/pom.xml
+++ b/releng/org.eclipse.epp.usagedata.repository/pom.xml
@@ -1,15 +1,67 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <artifactId>workspace</artifactId>
-    <groupId>org.eclipse.epp.usagedata</groupId>
-    <version>1.3.1-SNAPSHOT</version>
-    <relativePath>../../releng/org.eclipse.epp.usagedata.releng.tycho/pom.xml</relativePath>
-  </parent>
-  <groupId>org.eclipse.epp.usagedata</groupId>
-  <artifactId>org.eclipse.epp.usagedata.repository</artifactId>
-  <version>1.3.1-SNAPSHOT</version>
-  <packaging>eclipse-update-site</packaging>
+<project
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<artifactId>workspace</artifactId>
+		<groupId>org.eclipse.epp.usagedata</groupId>
+		<version>1.3.1-SNAPSHOT</version>
+		<relativePath>../../releng/org.eclipse.epp.usagedata.releng.tycho/pom.xml</relativePath>
+	</parent>
+	<groupId>org.eclipse.epp.usagedata</groupId>
+	<artifactId>org.eclipse.epp.usagedata.repository</artifactId>
+	<version>1.3.1-SNAPSHOT</version>
+	<packaging>eclipse-update-site</packaging>
+	<profiles>
+		<profile>
+			<id>build-server</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.mortbay.jetty.toolchain</groupId>
+						<artifactId>eclipse-signing-maven-plugin</artifactId>
+						<version>1.0-SNAPSHOT</version>
+						<executions>
+							<!-- example of executing locally for pack -->
+							<execution>
+								<id>pack</id>
+								<phase>package</phase>
+								<goals>
+									<goal>pack</goal>
+								</goals>
+							</execution>
+							<!-- the sign remote -->
+							<execution>
+								<id>sign</id>
+								<phase>package</phase>
+								<goals>
+									<goal>sign</goal>
+								</goals>
+							</execution>
+							<!-- example of remote pack -->
+							<execution>
+								<id>repack</id>
+								<configuration>
+									<inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
+								</configuration>
+								<phase>package</phase>
+								<goals>
+									<goal>pack</goal>
+								</goals>
+							</execution>
+							<!-- signing and pack alters tycho checksums so fix them -->
+							<execution>
+								<id>fixCheckSums</id>
+								<phase>package</phase>
+								<goals>
+									<goal>fixCheckSums</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>