Browse Source

Added signing profile to build

benjamin.schwertfeger@googlemail.com 12 years ago
parent
commit
8c123ee952
2 changed files with 88 additions and 30 deletions
  1. 53 1
      releng/org.yakindu.sct.releng/pom.xml
  2. 35 29
      releng/org.yakindu.sct.releng/settings.xml

+ 53 - 1
releng/org.yakindu.sct.releng/pom.xml

@@ -483,6 +483,58 @@
 				<ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m</ui.test.vmargs>
 			</properties>
 		</profile>
+		<profile>
+			<id>enableSigning</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>de.itemis.signing</groupId>
+						<artifactId>itemis-jarsigner</artifactId>
+						<version>0.0.3</version>
+						<configuration>
+							<sshKey>${ssh.key}</sshKey>
+						</configuration>
+						<executions>
+							<execution>
+								<id>sign</id>
+								<goals>
+									<goal>sign</goal>
+								</goals>
+								<phase>package</phase>
+							</execution>
+						</executions>
+					</plugin>
+					<!-- pack plugins with pack200, which are smaller class files (Part 
+						II) and add them to p2-metadata -->
+					<!-- Configured again to place behind jarsigner in same phase -->
+					<plugin>
+						<groupId>org.eclipse.tycho.extras</groupId>
+						<artifactId>tycho-pack200b-plugin</artifactId>
+						<version>${tycho-extras-version}</version>
+						<executions>
+							<execution>
+								<id>pack200-pack</id>
+								<goals>
+									<goal>pack</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+			<pluginRepositories>
+				<pluginRepository>
+					<id>nexus-projects.itemis.de</id>
+					<url>https://projects.itemis.de/nexus/content/groups/maven-plugins/</url>
+					<releases>
+						<enabled>true</enabled>
+					</releases>
+					<snapshots>
+						<enabled>true</enabled>
+					</snapshots>
+				</pluginRepository>
+			</pluginRepositories>
+		</profile>
 	</profiles>
 
 	<modules>
@@ -545,7 +597,7 @@
 
 		<module>../org.yakindu.sct.repository</module>
 		<module>../org.yakindu.sct.repository.full</module>
-		
+
 		<module>../org.yakindu.sct.compare</module>
 	</modules>
 

+ 35 - 29
releng/org.yakindu.sct.releng/settings.xml

@@ -1,32 +1,38 @@
 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                       http://maven.apache.org/xsd/settings-1.0.0.xsd">
-  <localRepository/>
-  <interactiveMode/>
-  <usePluginRegistry/>
-  <offline/>
-  <pluginGroups/>
-  <servers/>
-  <mirrors>
-    <mirror>
-      <id>Reserve</id>
-      <name>itemis</name>
-      <url>http://reserve.itemis.de/eclipse/releases/indigo</url>
-      <mirrorOf>indigo</mirrorOf>
-      <layout>p2</layout>
-      <mirrorOfLayouts>p2</mirrorOfLayouts>
-    </mirror>
-    <mirror>
-      <id>Reserve3</id>
-      <name>eclipse37</name>
-      <url>http://reserve.itemis.de/eclipse/eclipse/updates/3.7</url>
-      <mirrorOf>eclipse37</mirrorOf>
-      <layout>p2</layout>
-      <mirrorOfLayouts>p2</mirrorOfLayouts>
-    </mirror>
-  </mirrors>
-  <proxies/>
-  <profiles/>
-  <activeProfiles/>
+	<localRepository />
+	<interactiveMode />
+	<usePluginRegistry />
+	<offline />
+	<pluginGroups />
+	<servers>
+		<server>
+			<id>nexus-projects.itemis.de</id>
+			<username>${P2_SERVER_USER}</username>
+			<password>${P2_SERVER_PASSWORD}</password>
+		</server>
+	</servers>
+	<mirrors>
+		<mirror>
+			<id>Reserve</id>
+			<name>itemis</name>
+			<url>http://reserve.itemis.de/eclipse/releases/indigo</url>
+			<mirrorOf>indigo</mirrorOf>
+			<layout>p2</layout>
+			<mirrorOfLayouts>p2</mirrorOfLayouts>
+		</mirror>
+		<mirror>
+			<id>Reserve3</id>
+			<name>eclipse37</name>
+			<url>http://reserve.itemis.de/eclipse/eclipse/updates/3.7</url>
+			<mirrorOf>eclipse37</mirrorOf>
+			<layout>p2</layout>
+			<mirrorOfLayouts>p2</mirrorOfLayouts>
+		</mirror>
+	</mirrors>
+	<proxies />
+	<profiles />
+	<activeProfiles />
 </settings>