blob: 55416ec6bc22fd6deaea22a5912995a00c342e8b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2008, 2014 Sonatype Inc. and others.
- 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:
- Sonatype Inc. - initial API and implementation
-->
<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>org.eclipse.tycho</groupId>
<artifactId>tycho</artifactId>
<version>1.5.0</version>
</parent>
<artifactId>tycho-its</artifactId>
<name>Tycho Integration Tests</name>
<properties>
<tycho-build-version>${project.version}</tycho-build-version>
<its-maven-version>3.1.0</its-maven-version>
<maven-dir>${project.build.directory}/apache-maven-${its-maven-version}</maven-dir>
</properties>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>maven-properties-plugin</artifactId>
<version>0.0.2</version>
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>filter-file</goal>
</goals>
<configuration>
<in>src/test/resources/baseTest.properties</in>
<outDir>target/test-classes/</outDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-maven</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>apache-maven</includeArtifactIds>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes>
<!-- TODO tycho-186 is breaking 136 -->
<exclude>**/Tycho136*.java</exclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>true</failIfNoTests>
<systemPropertyVariables>
<it.cliOptions>${it.cliOptions}</it.cliOptions>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tychoBootstrapVersion}</version>
<executions>
<execution>
<id>mirror-kepler-test-repo</id>
<phase>process-test-classes</phase>
<goals>
<goal>mirror</goal>
</goals>
<configuration>
<source>
<repository>
<url>http://download.eclipse.org/releases/kepler/201402280900/</url>
<layout>p2</layout>
</repository>
</source>
<ius>
<iu>
<id>org.eclipse.osgi</id>
<version>3.9.1.v20140110-1610</version>
</iu>
<iu>
<id>org.eclipse.equinox.launcher</id>
<version>1.3.0.v20130327-1440</version>
</iu>
<iu>
<id>org.eclipse.core.runtime</id>
<version>3.9.100.v20131218-1515</version>
</iu>
<iu>
<id>org.junit</id>
<version>4.11.0.v201303080030</version>
</iu>
<iu>
<id>org.eclipse.equinox.executable.feature.group</id>
<version>3.6.0.v20140117-1004</version>
</iu>
</ius>
<filter>
<osgi.ws>win32</osgi.ws>
<osgi.os>win32</osgi.os>
<osgi.arch>x86_64</osgi.arch>
</filter>
<includePacked>false</includePacked>
<includeOptional>false</includeOptional>
<destination>${project.basedir}/repositories/kepler</destination>
</configuration>
</execution>
<execution>
<id>mirror-oxygen-test-repo</id>
<phase>process-test-classes</phase>
<goals>
<goal>mirror</goal>
</goals>
<configuration>
<source>
<repository>
<url>http://download.eclipse.org/releases/oxygen/</url>
<layout>p2</layout>
</repository>
</source>
<ius>
<iu>
<id>org.eclipse.osgi</id>
<version>3.12.100.v20180210-1608</version>
</iu>
<iu>
<id>org.eclipse.equinox.launcher</id>
<version>1.4.0.v20161219-1356</version>
</iu>
<iu>
<id>org.eclipse.core.runtime</id>
<version>3.13.0.v20170207-1030</version>
</iu>
<iu>
<id>org.junit</id>
<version>4.12.0.v201504281640</version>
</iu>
<iu>
<id>org.junit.jupiter.api</id>
<version>5.0.0.v20170910-2246</version>
</iu>
<iu>
<id>org.apache.xerces</id>
<version>2.9.0.v201101211617</version>
</iu>
</ius>
<includePacked>false</includePacked>
<includeOptional>false</includeOptional>
<destination>${project.basedir}/repositories/oxygen</destination>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- Configure lifecycle mapping for m2eclipse -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.sonatype.plugins</groupId>
<artifactId>maven-properties-plugin</artifactId>
<versionRange>[0.0.2,)</versionRange>
<goals>
<goal>filter-file</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.1,)</versionRange>
<goals>
<goal>unpack-dependencies</goal>
<goal>unpack</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<versionRange>[${tychoBootstrapVersion},)</versionRange>
<goals>
<goal>mirror</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>apache-maven</artifactId>
<version>${its-maven-version}</version>
<classifier>bin</classifier>
<type>tar.gz</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-testing-harness</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
</dependency>
<dependency>
<groupId>bcel</groupId>
<artifactId>bcel</artifactId>
<scope>test</scope>
</dependency>
<!-- update site tests -->
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-jetty-testsuite</artifactId>
<version>2.1</version>
</dependency>
<!-- artifacts to be tested -->
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-core</artifactId>
<version>${tycho-build-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-pomgenerator-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-build-version}</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho</artifactId>
<version>${tycho-build-version}</version>
<type>pom</type>
</dependency>
<!-- Tycho's OSGi runtime -->
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-bundles-external</artifactId>
<version>${tycho-build-version}</version>
<type>eclipse-application</type>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
<version>${tycho-build-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.p2.resolver.impl</artifactId>
<version>${tycho-build-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.p2.maven.repository</artifactId>
<version>${tycho-build-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.p2.tools.impl</artifactId>
<version>${tycho-build-version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>bootstrap-0</id>
<activation>
<property>
<name>!tycho.testTargetPlatform</name>
</property>
</activation>
<properties>
<!--
Eclipse SDK used by the integration tests. Use -Pe34, -Pe35, etc to test against non-default
eclipse version.
As of Eclipse 3.6.0, target.eclipse-classifier does not have to match the actual build system.
For example, I am able to fully build and test Tycho in linux/gtk/x86_64 using
target.eclipse-classifier=win32
Copy&paste commands below to deploy new version of eclipse SDK and DeltaPack to r.s.o.
ECLIPSE_VERSION=3.6.2
/opt/maven/bin/mvn install:install-file -Dfile=eclipse-SDK-${ECLIPSE_VERSION}-win32.zip \
-DgroupId=org.eclipse.tycho.ci -DartifactId=eclipse-SDK -Dclassifier=win32 -Dversion=${ECLIPSE_VERSION} -Dpackaging=zip
/opt/maven/bin/mvn install:install-file -Dfile=eclipse-${ECLIPSE_VERSION}-delta-pack.zip \
-DgroupId=org.eclipse.tycho.ci -DartifactId=eclipse-delta-pack -Dversion=${ECLIPSE_VERSION} -Dpackaging=zip
mvn deploy:deploy-file -DgeneratePom=false -Dfile=eclipse-SDK-${ECLIPSE_VERSION}-win32.zip \
-DgroupId=org.eclipse.tycho.ci -DartifactId=eclipse-SDK -Dversion=${ECLIPSE_VERSION} -Dclassifier=win32 -Dpackaging=zip \
-DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
mvn deploy:deploy-file -e -DgeneratePom=false -Dfile=eclipse-${ECLIPSE_VERSION}-delta-pack.zip \
-DgroupId=org.eclipse.tycho.ci -DartifactId=eclipse-delta-pack -Dversion=${ECLIPSE_VERSION} -Dpackaging=zip \
-DrepositoryId=forge-releases -Durl=http://repository.sonatype.org/service/local/staging/deploy/maven2/
-->
<target.basedir>${java.io.tmpdir}</target.basedir>
<target.eclipse-version>3.6.2</target.eclipse-version>
<target.eclipse-classifier>win32</target.eclipse-classifier>
<target.eclipse-basedir>${target.basedir}/tycho-ci/${target.eclipse-classifier}/${target.eclipse-version}</target.eclipse-basedir>
<tycho.testTargetPlatform>${target.eclipse-basedir}/eclipse</tycho.testTargetPlatform>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-eclipse-sdk</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.tycho.ci</groupId>
<artifactId>eclipse-SDK</artifactId>
<classifier>${target.eclipse-classifier}</classifier>
<version>${target.eclipse-version}</version>
<type>zip</type>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.tycho.ci</groupId>
<artifactId>eclipse-delta-pack</artifactId>
<version>${target.eclipse-version}</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<markersDirectory>${target.basedir}/markers</markersDirectory>
<outputDirectory>${target.eclipse-basedir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>e35</id>
<properties>
<target.eclipse-version>3.5.2</target.eclipse-version>
</properties>
</profile>
<profile>
<!-- EXPERIMENTAL: run ITs in parallel -->
<id>parallel</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>classes</parallel>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>