blob: 0a2704c882d438b509f47680a9ba2ef50721f0ff [file] [log] [blame]
<!--
Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
Contributors:
Regent L'Archeveque - initial API and implementation
SPDX-License-Identifier: EPL-1.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>
<artifactId>org.eclipse.apogy.rcp.product</artifactId>
<version>0.5.0-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>
<parent>
<groupId>org.eclipse.apogy.rcp</groupId>
<artifactId>org.eclipse.apogy.rcp.parent</artifactId>
<version>0.5.0-SNAPSHOT</version>
<relativePath>../org.eclipse.apogy.rcp.parent</relativePath>
</parent>
<properties>
<product-id>apogy_rcp.product</product-id>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<!-- install the product for all configured os/ws/arch environments
using p2 director -->
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<!-- (optional) create product zips (one per os/ws/arch) -->
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
<!-- (optional) customize the root folder name of the product zip -->
<configuration>
<products>
<product>
<id>${product-id}</id>
<rootFolder>${product-name}</rootFolder>
</product>
</products>
</configuration>
</plugin>
<!-- workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=349421 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/products/${product-id}/icons/</outputDirectory>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
<nonFilteredFileExtension>xpm</nonFilteredFileExtension>
</nonFilteredFileExtensions>
<resources>
<resource>
<directory>icons</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>