| <?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.19.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> |
| </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="http://build.eclipse.org:31338/winsign.php"/> |
| </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="http://build.eclipse.org:31338/winsign.php"/> |
| </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> |
| <signerUrl>http://172.30.206.146:8282/macosx-signing-service/1.3.0-SNAPSHOT</signerUrl> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.cbi.maven.plugins</groupId> |
| <artifactId>eclipse-dmg-packager</artifactId> |
| <version>${cbi-plugins.version}</version> |
| <executions> |
| <execution> |
| <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> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |