blob: 6c15bdcbb2d5b745d970bfa19d242fe216bc7afb [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 Eclipse contributors and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
-->
<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>
<parent>
<groupId>org.eclipse.justj</groupId>
<artifactId>org.eclipse.justj.tools.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.justj.tools.parent</relativePath>
</parent>
<groupId>org.eclipse.justj</groupId>
<artifactId>org.eclipse.justj.tools.sample.product</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>
<properties>
<org.eclipse.justj.jre.repository>http://download.eclipse.org/justj/jres/14/updates/nightly/latest</org.eclipse.justj.jre.repository>
</properties>
<repositories>
<repository>
<id>jre-updates</id>
<url>${org.eclipse.justj.jre.repository}</url>
<layout>p2</layout>
</repository>
</repositories>
<profiles>
<profile>
<id>env-win64</id>
<activation>
<property>
<name>env</name>
<value>win64</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>env-mac64</id>
<activation>
<property>
<name>env</name>
<value>mac64</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>env-linux64</id>
<activation>
<property>
<name>env</name>
<value>linux64</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eclipse-sign</id>
<activation>
<property>
<name>PACK_AND_SIGN</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-winsigner-plugin</artifactId>
<version>${jarsigner-version}</version>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-macsigner-plugin</artifactId>
<version>${jarsigner-version}</version>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
<phase>package</phase>
<configuration>
<fileNames>
<fileName>Eclipse-Sample.app</fileName>
</fileNames>
<timeoutMillis>300000</timeoutMillis> <!-- 5 min -->
<continueOnFail>false</continueOnFail>
<entitlements>${project.basedir}/sample.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>${jarsigner-version}</version>
<executions>
<execution>
<goals>
<goal>package-dmg</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<source>${project.build.directory}/products/org.eclipse.justj.tools.sample.product-macosx.cocoa.x86_64.tar.gz</source>
<continueOnFail>false</continueOnFail>
<timeoutMillis>600000</timeoutMillis> <!-- 10 min -->
<sign>true</sign>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
<repositoryName>Eclipse-Sample Build ${build.id}</repositoryName>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<executionEnvironmentDefault>org.eclipse.justj.openjdk.hotspot.jre.full-14</executionEnvironmentDefault>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
<configuration>
<profile>DefaultProfile</profile>
<products>
<product>
<id>org.eclipse.justj.tools.sample.product</id>
<rootFolder>eclipse-sample</rootFolder>
<rootFolders>
<macosx>Eclipse-Sample.app</macosx>
<linux>eclipse-sample</linux>
<win32>eclipse-sample</win32>
</rootFolders>
</product>
</products>
</configuration>
</execution>
<execution>
<id>archive-products</id>
<phase>pre-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>
</plugins>
</build>
</project>