blob: de2104e167099bec3d045bdcc88a8306925c196b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2020 Eclipse Foundation.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
https://www.eclipse.org/org/documents/edl-v10.php
Contributors:
Igor Fedorenko - initial implementation
David Williams - improvements and maintenance
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eclipse.platform.releng.tychoeclipsebuilder</groupId>
<artifactId>eclipse.platform.releng.tychoeclipsebuilder</artifactId>
<version>4.23.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.rt.osgistarterkit.product</artifactId>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<format>'${buildId}'</format>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<resolver>p2</resolver>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>aarch64</arch>
</environment>
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<executions>
<execution>
<id>materialize-products</id>
<phase>pre-integration-test</phase>
<goals>
<goal>materialize-products</goal>
</goals>
<configuration>
<profile>SDKProfile</profile>
<products>
<product>
<id>org.eclipse.rt.osgistarterkit.product</id>
<rootFolder>rt</rootFolder>
<rootFolders>
<macosx>Rt.app</macosx>
</rootFolders>
</product>
</products>
</configuration>
</execution>
<execution>
<id>archive-products</id>
<phase>post-integration-test</phase>
<goals>
<goal>archive-products</goal>
</goals>
<configuration>
<formats>
<win32>zip</win32>
<linux>tar.gz</linux>
<macosx>tar.gz</macosx>
</formats>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>default-assemble-repository</id>
<phase>package</phase>
<goals>
<goal>assemble-repository</goal>
</goals>
</execution>
<execution>
<id>default-archive-repository</id>
<phase>pre-integration-test</phase>
<goals>
<goal>archive-repository</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>eclipse-sign</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>natives</id>
<phase>package</phase>
<configuration>
<target>
<path id="binary.id">
<fileset dir="${project.build.directory}/repository/binary/">
<include name="org.eclipse.rt.osgistarterkit.product.executable.win32.win32.x86_64_*"/>
</fileset>
</path>
<property name="binary.file" refid="binary.id"/>
<echo message="BINARY = ${binary.file}" />
<unzip
src="${binary.file}"
dest="${project.build.directory}/tosign/" />
<exec dir="${project.build.directory}/tosign/" executable="curl">
<arg value="--output"/>
<arg value="rt.exe"/>
<arg value="--form"/>
<arg value="file=@rt.exe"/>
<arg value="--silent"/>
<arg value="--show-error"/>
<arg value="--fail"/>
<arg value="https://cbi.eclipse.org/authenticode/sign"/>
</exec>
<exec dir="${project.build.directory}/tosign/" executable="curl">
<arg value="--output"/>
<arg value="eclipsec.exe"/>
<arg value="--form"/>
<arg value="file=@eclipsec.exe"/>
<arg value="--silent"/>
<arg value="--show-error"/>
<arg value="--fail"/>
<arg value="https://cbi.eclipse.org/authenticode/sign"/>
</exec>
<zip
destfile="${binary.file}"
basedir="${project.build.directory}/tosign/" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-winsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<fileNames>
<fileName>rt.exe</fileName>
</fileNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-macsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<fileNames>
<fileName>Rt.app</fileName>
</fileNames>
<timeoutMillis>300000</timeoutMillis> <!-- 5 min -->
<continueOnFail>${macSigner.forceContinue}</continueOnFail>
<entitlements>${project.basedir}/../entitlement/equinox.entitlement</entitlements>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-dmg-packager</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<id>dmg-x86_64</id>
<goals>
<goal>package-dmg</goal>
</goals>
<phase>verify</phase>
<configuration>
<source>${project.build.directory}/products/org.eclipse.rt.osgistarterkit.product-macosx.cocoa.x86_64.tar.gz</source>
<continueOnFail>true</continueOnFail>
<timeoutMillis>600000</timeoutMillis> <!-- 10 min -->
<continueOnFail>${macSigner.forceContinue}</continueOnFail>
<sign>true</sign>
</configuration>
</execution>
<execution>
<id>dmg-aarch64</id>
<goals>
<goal>package-dmg</goal>
</goals>
<phase>verify</phase>
<configuration>
<source>${project.build.directory}/products/org.eclipse.rt.osgistarterkit.product-macosx.cocoa.aarch64.tar.gz</source>
<continueOnFail>true</continueOnFail>
<timeoutMillis>600000</timeoutMillis> <!-- 10 min -->
<continueOnFail>${macSigner.forceContinue}</continueOnFail>
<sign>true</sign>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>