<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
- <version>1.0.0</version>
+ <version>1.5.0</version>
</extension>
-</extensions>
\ No newline at end of file
+</extensions>
<!-- common settings for all modules -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <tycho-version>1.0.0</tycho-version>
+ <tycho-version>1.5.0</tycho-version>
</properties>
<build>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
- <feature url="features/org.simantics.db.client_1.1.0.qualifier.jar" id="org.simantics.db.client" version="1.1.3.qualifier">
- <category name="Simantics DB Client"/>
- </feature>
- <feature url="features/org.simantics.db.services_1.1.0.qualifier.jar" id="org.simantics.db.services" version="1.1.0.qualifier">
- <category name="Simantics DB Client"/>
- </feature>
- <feature url="features/org.simantics.layer0_1.1.0.qualifier.jar" id="org.simantics.layer0" version="1.1.2.qualifier">
- <category name="Simantics DB Client"/>
- </feature>
- <category-def name="Simantics DB Client" label="Simantics DB Client"/>
-</site>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r<!--
- Copyright (c) 2007, 2010 Association for Decentralized Information Management
- in Industry THTH ry.
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
-
- Contributors:
- VTT Technical Research Centre of Finland - initial API and implementation
- -->
-
-<site>
- <feature url="features/org.simantics.message_0.9.0.jar" id="org.simantics.message" version="0.9.0">
- <category name="org.simantics.message"/>
- </feature>
- <category-def name="org.simantics.message" label="Message Logging Subsystem"/>
-</site>
--- /dev/null
+#!/bin/bash
+
+dir=`dirname $0`
+
+if [ $# -lt 3 ]; then
+ echo "Usage: sign.sh <keystore location> <signing property file> <TSA URL>"
+ echo ""
+ echo "<signing property file> must contain the following properties:"
+ echo " jarsigner.alias: keystore entry alias"
+ echo " jarsigner.storepass: password for the keystore"
+ echo " jarsigner.keypass: password for the key <jarsigner.alias>"
+ echo ""
+ echo "<TSA URL> can be empty is timestamping is not desired."
+ exit -1
+fi
+
+keystore=$1
+signprops=$2
+tsa=$3
+
+function signprop {
+ grep "${1}" ${signprops}|cut -d'=' -f2
+}
+
+echo "----"
+echo "script directory: ${dir}"
+echo "keystore: ${keystore}"
+echo "signing property file: ${signprops}"
+echo "TSA URL: ${tsa}"
+
+keyalias=$(signprop 'jarsigner.alias')
+storepass=$(signprop 'jarsigner.storepass')
+keypass=$(signprop 'jarsigner.keypass')
+
+for jar in `find ${dir}/target/repository/plugins/ -type f -not -ipath '*.source_*.jar'`; do
+ echo "----"
+ if [ -z ${tsa} ]; then
+ echo "Signing $jar"
+ jarsigner -keystore ${keystore} \
+ -storepass ${storepass} \
+ -keypass ${keypass} \
+ -verbose \
+ $jar \
+ ${keyalias}
+ else
+ echo "Signing and timestamping $jar"
+ jarsigner -keystore ${keystore} \
+ -storepass ${storepass} \
+ -keypass ${keypass} \
+ -verbose \
+ -tsa "${tsa}" \
+ $jar \
+ ${keyalias}
+ fi
+done
+
<packaging>pom</packaging>
<properties>
- <tycho.version>1.0.0</tycho.version>
- <tycho.extras.version>1.0.0</tycho.extras.version>
+ <tycho.version>1.5.0</tycho.version>
+ <tycho.extras.version>1.5.0</tycho.extras.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <mars-repo.url>http://download.eclipse.org/releases/mars</mars-repo.url>
</properties>
<repositories>
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>sign</id>
+ <activation>
+ <property>
+ <name>sign</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <files>
+ <file>${sign.properties}</file>
+ </files>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>