Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Cross-Platform Building with Tycho

Hello everybody,

interestingly, I could not find a solution to the following problem even though I was searching the web for quite a while.

I try to build my own Eclipse P2 repository mirroring a subset of the plugins of the "Eclipse Platform SDK" feature from the official Eclipse Indigo download source. The result is meant to be used as a stable target platform for my organization's own development process.

To achieve this, I created a new feature project listing the desired Eclipse plugins (e.g. org.eclipse.core.runtime) in its feature.xml. For the Maven Tycho configuration, I used the attached pom.xml file.

Now, Tycho fails to resolve platform-specific plugins, such as "org.eclipse.equinox.launcher.win32.win32.x86" since my operating system on which Tycho runs is a Win64 platform.

Unfortunately, I cannot include the Eclipse Delta Pack since Tycho seems to be unable to resolve from local directories. And anyways, I don't want to manually deploy the delta pack on the server system running Maven in a Jenkins environment.

Is there a way to tell Tycho to include all environment versions of plugins when resolving from the p2 repository configured above as Eclipse can be told with the "Include all environment" switch?

Do you have any ideas how to solve that issue in an elegant way...

Thanks for any hints.
Timo
<?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&quot;"; xmlns="http://maven.apache.org/POM/4.0.0&quot;"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>init</groupId>
  <artifactId>com.initka.targetplatform.rcp.feature</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>eclipse-feature</packaging>

  <!-- this is the parent POM from which all modules inherit common settings -->
  <properties>
    <tycho-version>0.12.0</tycho-version>
  </properties>
  
  <repositories>
    <!-- configure p2 repository to resolve against -->
    <repository>
      <id>indigo</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/releases/indigo/</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>
    </plugins>
  </build>
  
</project>

Back to the top