view eclipse/com.redhat.thermostat.eclipse.test.ui/pom.xml @ 1075:be3470750169

Eclipse target platform definition This commit provides a target definition file that enables Eclipse client developers to install all required dependencies into their workspace in a single click. This commit adds a feature for all of our bundle-wrapped test dependencies. This is necessary to include the corresponding p2 repository in our target definition file as a software source. This feature required some changes to our Makefile, since Tycho was unable to resolve the feature as is. Now the Makefile builds all pom-first dependencies first, so core Thermostat and our bundle-wrapped deps. Then all manifest-first modules are built in a single reactor, this includes the p2 repositories. Another small fix I've added is a eclipse-root property to the various Eclipse POM files. I had noticed that different nesting depths caused projects not to be able to find our p2 repositories that are referenced using a relative path. This commit also removes the previous Fedora-specific target definition file, which should be obsoleted by this new general-purpose one. I have renamed the native location for the Keyring wrapper lib from linux_x86-64 to linux_x86_64. Eclipse's ${target.arch} variable produces x86_64, which will make it easier for documentation going forward. Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-April/006357.html PR1387
author Elliott Baron <ebaron@redhat.com>
date Thu, 25 Apr 2013 11:28:32 -0400
parents 0b250145abf3
children ad73c8da51a9
line wrap: on
line source

<?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>
  <parent>
    <artifactId>thermostat-eclipse-parent</artifactId>
    <groupId>com.redhat.thermostat.eclipse.parent</groupId>
    <version>0.8.0-SNAPSHOT</version>
  </parent>
  <groupId>com.redhat.thermostat.eclipse.parent</groupId>
  <artifactId>com.redhat.thermostat.eclipse.test.ui</artifactId>
  <packaging>eclipse-test-plugin</packaging>
  <version>0.8.0-SNAPSHOT</version>

  <name>Thermostat Eclipse Client UI Tests</name>

  <properties>
    <eclipse-root>${basedir}/..</eclipse-root>
  </properties>

  <repositories>
    <repository>
      <id>swtbot</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/technology/swtbot/releases/latest/</url>
    </repository>
    <repository>
      <id>local_client</id>
      <layout>p2</layout>
      <url>file://${eclipse-root}/core-p2-repository/target/repository/</url>
    </repository>
    <repository>
      <id>local_eclipse</id>
      <layout>p2</layout>
      <url>file://${eclipse-root}/com.redhat.thermostat.eclipse.p2-repo/target/repository/</url>
    </repository>
    <repository>
      <id>local_eclipse_test_deps</id>
      <layout>p2</layout>
      <url>file://${eclipse-root}/test-deps-p2-repository/target/repository/</url>
    </repository>
  </repositories>

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-surefire-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <useUIHarness>true</useUIHarness>
          <useUIThread>false</useUIThread>
          <product>org.eclipse.platform.ide</product>
          <application>org.eclipse.ui.ide.workbench</application>
          <dependencies>
            <dependency>
              <type>p2-installable-unit</type>
              <artifactId>org.eclipse.sdk.feature.group</artifactId>
              <version>${sdk-version}</version>
            </dependency>
            <dependency>
              <type>p2-installable-unit</type>
              <artifactId>com.redhat.thermostat.client.feature.feature.group</artifactId>
              <version>0.8.0</version>
            </dependency>
            <dependency>
              <type>p2-installable-unit</type>
              <artifactId>com.redhat.thermostat.eclipse.feature.feature.group</artifactId>
              <version>0.8.0</version>
            </dependency>
            <dependency>
              <type>p2-installable-unit</type>
              <artifactId>com.redhat.thermostat.eclipse.test.deps.feature.feature.group</artifactId>
              <version>0.8.0</version>
            </dependency>
          </dependencies>
          <bundleStartLevel>
            <bundle>
              <id>com.redhat.thermostat.common.core</id>
              <level>4</level>
              <autoStart>true</autoStart>
            </bundle>
            <bundle>
              <id>com.redhat.thermostat.web.common</id>
              <level>4</level>
              <autoStart>true</autoStart>
            </bundle>
            <bundle>
              <id>com.redhat.thermostat.web.client</id>
              <level>4</level>
              <autoStart>true</autoStart>
            </bundle>
            <bundle>
              <id>com.redhat.thermostat.launcher</id>
              <level>4</level>
              <autoStart>true</autoStart>
            </bundle>
          </bundleStartLevel>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>