Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho multi-platform build problem

For the resolution, direct, optional dependencies are either made mandatory or removed completely. The default is to make them mandatory – which is why your build fails.

 

You can make the build ignore them through the following configuration

  <plugin>

    <groupId>org.eclipse.tycho</groupId>

    <artifactId>target-platform-configuration</artifactId>

    <version>${tychoVersion}</version>

    <configuration>

      <dependency-resolution>

        <optionalDependencies>ignore</optionalDependencies>

      </dependency-resolution>

    </configuration>

  </plugin>

 

There is no explicit documentation for this feature – it is only mentioned in http://wiki.eclipse.org/Tycho/Release_Notes/0.14

 

Regards

Tobias

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Carmelo Scala
Sent: Freitag, 11. April 2014 17:28
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] tycho multi-platform build problem

 

Hi all,

I’m quite new in using Tycho but I’m don’t know how to get out of this problem.

 

I have a rcp application multi platform.

It perfectly works under eclipse and using the delta pack I can export my application in 32 and 64 bit (I’m using the latest ecliplse release 4.3).

 

One of my plugins include two plugins each one optional

 

Require-Bundle: org.eclipse.core.runtime,

com.xxx.jacorb.orb;visibility:=reexport,

com.xxx.model;visibility:=reexport,

com.xxx.repositorycfg.x86_64;resolution:=optional;visibility:=reexport

com.xxx.repositorycfg.x86;resolution:=optional;visibility:=reexport

 

 

the last two are specific for 32 and 64 bit platform.

 

I have specified in the eclipse plugin the filter correctly (ie. Eclipse-PlatformFilter: (&  (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86_64))) and I can export my application fine from eclipse.

 

But when I try to build it using tycho there is no way, I always get the following error (like it is trying to resolve 64 platform with 32 library)

 

[INFO] Cannot complete the request.  Generating details.

[INFO] Cannot complete the request.  Generating details.

[INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86_64, org.eclipse.update.install.features=true}

[ERROR] Cannot resolve project dependencies:

[ERROR]   Software being installed: com.xxx.commonservices.core 6.0.0.qualifier

[ERROR]   Missing requirement: com.xxx.commonservices.core 6.0.0.qualifier requires 'bundle com.xxx.repositorycfg.x86

0.0.0' but it could not be found

 

 

what am I doing wrong?

 

if did try to remove the x86 dependecy from the main plugin and clearly it works fine.

 

regards

carmelo

 


Back to the top