blob: e60ce1fb6841554e27ab7983b511a31a68e2f1c7 [file] [log] [blame]
<?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>org.eclipse.gmf.notation</groupId>
<artifactId>org.eclipse.gmf.notation.releng</artifactId>
<version>1.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- this is the parent POM from which all modules inherit common settings -->
<properties>
<tycho-version>0.24.0</tycho-version>
<cbi-plugins.version>1.0.5</cbi-plugins.version>
<antrun-version>1.6</antrun-version>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
</properties>
<build>
<plugins>
<plugin>
<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-source-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun-version}</version>
<executions>
<execution>
<id>replace-build-token</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath" />
<if>
<available file="about.mappings" />
<then>
<echo
message="Replacing @build@ token within about.mappings with build id" />
<replace file="about.mappings">
<replacefilter token="@build@"
value="${unqualifiedVersion}.${buildQualifier}" />
</replace>
</then>
</if>
<if>
<available file="javadocOptions.txt" />
<then>
<echo
message="Replacing @build@ token within javadocOptions.txt with build id" />
<replace file="javadocOptions.txt">
<replacefilter token="@build@"
value="${unqualifiedVersion}.${buildQualifier}" />
</replace>
</then>
</if>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>replace-back-build-token</id>
<phase>install</phase>
<configuration>
<tasks>
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath" />
<if>
<available file="about.mappings" />
<then>
<echo
message="Replacing back build id within about.mappings with @build@ token" />
<replace file="about.mappings">
<replacefilter token="${unqualifiedVersion}.${buildQualifier}"
value="@build@" />
</replace>
</then>
</if>
<if>
<available file="javadocOptions.txt" />
<then>
<echo
message="Replacing back build id within javadocOptions.txt with @build@ token" />
<replace file="javadocOptions.txt">
<replacefilter token="${unqualifiedVersion}.${buildQualifier}"
value="@build@" />
</replace>
</then>
</if>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>20020829</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>gmf-notation.target</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- add target file content to target platform -->
<target>
<artifact>
<groupId>org.eclipse.gmf.notation</groupId>
<artifactId>org.eclipse.gmf.notation.target</artifactId>
<version>1.11.0-SNAPSHOT</version>
<classifier>gmf-notation</classifier>
</artifact>
</target>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</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>
</plugins>
</build>
</profile>
<profile>
<id>hudson.eclipse.org</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<id>sign</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<pluginRepositories>
<pluginRepository>
<id>CBI</id>
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
</pluginRepository>
</pluginRepositories>
<modules>
<module>../org.eclipse.gmf.notation.target</module>
<module>../org.eclipse.gmf.runtime.notation</module>
<module>../org.eclipse.gmf.runtime.notation.edit</module>
<module>../org.eclipse.gmf.runtime.notation.sdk</module>
<module>../org.eclipse.gmf.runtime.notation-feature</module>
<module>../org.eclipse.gmf.runtime.notation.source-feature</module>
<module>../org.eclipse.gmf.runtime.notation.sdk-feature</module>
<module>../org.eclipse.gmf.tests.runtime.notation</module>
<module>../org.eclipse.gmf.tests.runtime.notation-feature</module>
<module>../org.eclipse.gmf.notation.repository</module>
</modules>
</project>