[Releng] Add signing profile
Change-Id: I9c99af4ef4fa209731404a5303812c4f470a5531
Signed-off-by: Pauline DEVILLE <pauline.deville@cea.fr>
diff --git a/releng/org.eclipse.papyrus.moka.configuration/pom.xml b/releng/org.eclipse.papyrus.moka.configuration/pom.xml
index 134d527..ed36f05 100644
--- a/releng/org.eclipse.papyrus.moka.configuration/pom.xml
+++ b/releng/org.eclipse.papyrus.moka.configuration/pom.xml
@@ -1,9 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
<modelVersion>4.0.0</modelVersion>
-
<groupId>org.eclipse.papyrus.moka</groupId>
<artifactId>org.eclipse.papyrus.moka.releng.configuration</artifactId>
<version>4.1.0-SNAPSHOT</version>
@@ -11,7 +9,6 @@
<name>org.eclipse.papyrus.moka</name>
<description>Papyrus Model Execution Platform</description>
<inceptionYear>2012</inceptionYear>
-
<properties>
<tycho.version>2.2.0</tycho.version>
<tycho.extras.version>2.2.0</tycho.extras.version>
@@ -21,21 +18,18 @@
<maven.compiler.version>3.8.0</maven.compiler.version>
<java.source.version>11</java.source.version>
<java.target.version>11</java.target.version>
+ <jarSignerVersion>1.3.1</jarSignerVersion>
</properties>
-
<scm>
<url>http://git.eclipse.org/c/papyrus/org.eclipse.papyrus-moka.git/</url>
</scm>
-
<ciManagement>
<system>Jenkins</system>
<url>https://ci.eclipse.org/papyrus/view/Moka/job/papyrus-moka-master/</url>
</ciManagement>
-
<issueManagement>
<url>https://bugs.eclipse.org/bugs/buglist.cgi?product=Papyrus&component=moka</url>
</issueManagement>
-
<pluginRepositories>
<pluginRepository>
<id>central</id>
@@ -49,11 +43,21 @@
</snapshots>
</pluginRepository>
<pluginRepository>
+ <id>org.eclipse.cbi.maven.plugins</id>
+ <name>Eclipse CBI</name>
+ <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
<id>tycho-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
</pluginRepository>
</pluginRepositories>
-
<repositories>
<repository>
<id>license-feature</id>
@@ -61,7 +65,6 @@
<layout>p2</layout>
</repository>
</repositories>
-
<build>
<plugins>
<plugin>
@@ -86,13 +89,11 @@
<artifactId>maven-clean-plugin</artifactId>
<version>${maven.clean.version}</version>
</plugin>
-
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>${xtend.version}</version>
</plugin>
-
<!-- Integration between Tycho and Maven -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
@@ -100,7 +101,6 @@
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
-
<!-- Tycho compiler -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
@@ -115,14 +115,12 @@
<useProjectSettings>true</useProjectSettings>
</configuration>
</plugin>
-
<!-- Tycho extras -->
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tycho.extras.version}</version>
</plugin>
-
<!-- Target platform based build -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
@@ -151,7 +149,6 @@
</target>
</configuration>
</plugin>
-
<plugin>
<!-- enable source bundle generation -->
<groupId>org.eclipse.tycho</groupId>
@@ -191,5 +188,51 @@
</plugin>
</plugins>
</build>
-
+
+ <profiles>
+ <profile>
+ <id>sign</id>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <!-- Pack200 -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-jarsigner-plugin</artifactId>
+ <version>${jarSignerVersion}</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <defaultP2Metadata>false</defaultP2Metadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>