Last active
August 29, 2015 14:14
-
-
Save SimonScholz/3faa6601449048d4efdd to your computer and use it in GitHub Desktop.
Parent pom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example.e4.rcp</groupId> | |
<artifactId>com.example.build.parent</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<!-- tycho requires maven >= 3.0 --> | |
<prerequisites> | |
<maven>3.0</maven> | |
</prerequisites> | |
<properties> | |
<product-id>com.example.e4.rcp.todo.product</product-id> | |
<tycho-version>0.22.0</tycho-version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<!-- no default here --> | |
<tycho.test.vm.argline>-Xmx500m -Xdebug | |
-Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n</tycho.test.vm.argline> | |
<tycho.test.vm.useUiThread>false</tycho.test.vm.useUiThread> | |
</properties> | |
<repositories> | |
<!-- configure p2 repository to resolve against --> | |
<repository> | |
<id>indigo</id> | |
<layout>p2</layout> | |
<url>http://download.eclipse.org/releases/kepler</url> | |
</repository> | |
<!-- SWTbot --> | |
<repository> | |
<id>swtbot</id> | |
<layout>p2</layout> | |
<url>http://download.eclipse.org/technology/swtbot/releases/latest/</url> | |
</repository> | |
<!-- Orbit --> | |
<repository> | |
<id>Orbit</id> | |
<layout>p2</layout> | |
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20130118183705/repository/</url> | |
</repository> | |
</repositories> | |
<build> | |
<plugins> | |
<plugin> | |
<!-- enable tycho build extension --> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-maven-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<extensions>true</extensions> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-compiler-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<configuration> | |
<source>1.7</source> | |
<target>1.7</target> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-packaging-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<configuration> | |
<archive> | |
<addMavenDescriptor>false</addMavenDescriptor> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>target-platform-configuration</artifactId> | |
<version>${tycho-version}</version> | |
<configuration> | |
<!-- recommended: use p2-based target platform resolver --> | |
<resolver>p2</resolver> | |
<ignoreTychoRepositories>true</ignoreTychoRepositories> | |
<!-- configure the p2 target environments for multi-platform build --> | |
<environments> | |
<!-- Linux --> | |
<environment> | |
<os>linux</os> | |
<ws>gtk</ws> | |
<arch>x86_64</arch> | |
</environment> | |
<!-- Windows --> | |
<environment> | |
<os>win32</os> | |
<ws>win32</ws> | |
<arch>x86</arch> | |
</environment> | |
<environment> | |
<os>win32</os> | |
<ws>win32</ws> | |
<arch>x86_64</arch> | |
</environment> | |
<!-- Mac --> | |
<environment> | |
<os>macosx</os> | |
<ws>cocoa</ws> | |
<arch>x86</arch> | |
</environment> | |
<environment> | |
<os>macosx</os> | |
<ws>cocoa</ws> | |
<arch>x86_64</arch> | |
</environment> | |
</environments> | |
</configuration> | |
</plugin> | |
<!-- enable source bundle generation --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-source-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<executions> | |
<execution> | |
<id>plugin-source</id> | |
<goals> | |
<goal>plugin-source</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<!-- pass mac specific SWT properties on mac (OS check is based on identifying | |
the VM) --> | |
<profiles> | |
<profile> | |
<id>macosx</id> | |
<activation> | |
<property> | |
<name>java.vendor.url</name> | |
<value>http://www.apple.com/</value> | |
</property> | |
</activation> | |
<properties> | |
<tycho.test.vm.argline>-Dosgi.ws=cocoa -XstartOnFirstThread</tycho.test.vm.argline> | |
<tycho.test.vm.useUiThread>false</tycho.test.vm.useUiThread> | |
</properties> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment