[Releng] Update RCP signing behavior
Change-Id: If1107772fd4243acb32dafbf83c12d60d2cd840d
Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
diff --git a/pom.xml b/pom.xml
index a3199dd..6035fa8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,7 +43,7 @@
<findbugs.version>3.0.5</findbugs.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<!-- https://repo.eclipse.org/content/repositories/cbi-releases/ -->
- <jarSigner.version>1.3.1</jarSigner.version>
+ <eclipse-cbi.version>1.3.2</eclipse-cbi.version>
<!-- https://repository.jboss.org/ -->
<jboss.utils.version>1.7.0</jboss.utils.version>
<java.source.version>11</java.source.version>
@@ -320,13 +320,38 @@
<value>true</value>
</property>
</activation>
- <!-- Pack200 -->
<build>
<plugins>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId>
- <version>${jarSigner.version}</version>
+ <version>${eclipse-cbi.version}</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-macsigner-plugin</artifactId>
+ <version>${eclipse-cbi.version}</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-winsigner-plugin</artifactId>
+ <version>${eclipse-cbi.version}</version>
<executions>
<execution>
<id>sign</id>
diff --git a/releng/org.eclipse.papyrus.sysml16.product/application.entitlement b/releng/org.eclipse.papyrus.sysml16.product/application.entitlement
new file mode 100755
index 0000000..6fdb9d3
--- /dev/null
+++ b/releng/org.eclipse.papyrus.sysml16.product/application.entitlement
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ <key>com.apple.security.cs.disable-executable-page-protection</key>
+ <true/>
+ <key>com.apple.security.cs.allow-dyld-environment-variables</key>
+ <true/>
+ <key>com.apple.security.cs.disable-library-validation</key>
+ <true/>
+ <key>com.apple.security.cs.debugger</key>
+ <true/>
+</dict>
+</plist>
\ No newline at end of file
diff --git a/releng/org.eclipse.papyrus.sysml16.product/pom.xml b/releng/org.eclipse.papyrus.sysml16.product/pom.xml
index 5875120..92d1afa 100644
--- a/releng/org.eclipse.papyrus.sysml16.product/pom.xml
+++ b/releng/org.eclipse.papyrus.sysml16.product/pom.xml
@@ -55,9 +55,57 @@
<goals>
<goal>archive-products</goal>
</goals>
+ <phase>pre-integration-test</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>sign</id>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-macsigner-plugin</artifactId>
+ <configuration>
+ <fileNames>Papyrus.app</fileNames>
+ <entitlements>${project.basedir}/application.entitlement</entitlements>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-winsigner-plugin</artifactId>
+ <configuration>
+ <fileNames>Papyrus.exe,eclipsec.exe</fileNames>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file