Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Default Target Platform is empty while launching Eclipse by Maven tests
Default Target Platform is empty while launching Eclipse by Maven tests [message #655133] Fri, 18 February 2011 08:07 Go to next message
Johannes Lerch is currently offline Johannes Lerch
Messages: 18
Registered: February 2011
Junior Member
Hi,

I'm trying to integrate some SWTBot-Tests to our maven build process. The integration works and Eclipse is executed with all plug-ins I need to run my tests. During the test I'm creating plug-in projects with dependencies to org.eclipse.ui for example. These dependencies should be resolved by the default target platform of eclipse. If I launch the tests from within Eclipse the default target platform contains all required plug-ins. But if I launch those tests from within the Maven build the target platform contains only an osgi and some launcher bundles.

Sounds like a mistake in the Maven build, but lets discuss what Maven Tycho does: It creates a directory it uses as %ECLIPSE_HOME%. This directory contains a plugins folder containing the osgi and the launcher bundles. It also contains a configuration folder in which they place the config.ini file. This config.ini file defines all bundles which should be installed / started for the Eclipse test instance. They can be resolved correctly, but all references to bundles point to my local Maven Repository. So the configuration by Tycho looks fine, but different to what %ECLIPSE_HOME% normally looks like. Normally all installed plugins will be located in the plugins directory of %ECLIPSE_HOME%. In this case not, but is that really wrong?

Is it correct, that PDE is not using the config.ini file to resolve the contents of the default target platform?


I already started a discussion on the tycho-users mailinglist with that problem, but they are not sure about what PDE requires in this case. The discussion can be found here: http://software.2206966.n2.nabble.com/Eclipse-UI-Tests-with- maven-osgi-test-plugin-td6036492.html
You can also find a simple test project there which can be build with maven to demonstrate the problem.
Re: Default Target Platform is empty while launching Eclipse by Maven tests [message #665935 is a reply to message #655133] Mon, 18 April 2011 04:46 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 745
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,

I'd like to make a "up" on this topic since it is a blocking point for testing PDE-related projects with Tycho. Actually what is happening is that with Tycho, there is no real ${eclipse_home}, and instead of that, the bundles are listed in config.ini. Then the default target platform, which points to ${eclipse_home} contains no bundle and then PDE does not succeed to build bundles in development workspace.

Having target platform resolution based on actual bundles of the IDE rather than listing available ones in ${eclipse_home} is a blocking requirement to have Tycho working for projects dealing with PDE (PDE, EMF, GMF-Tooling, XText... and all other project that generate some bundles).

Should I open a bug report or a feature request for that?

Regards

Le 18/02/2011 14:07, Johannes Lerch a écrit :
> Hi,
>
> I'm trying to integrate some SWTBot-Tests to our maven build process. The integration works and Eclipse is executed with all plug-ins I need to run my tests. During the test I'm creating plug-in projects with dependencies to org.eclipse.ui for example. These dependencies should be resolved by the default target platform of eclipse. If I launch the tests from within Eclipse the default target platform contains all required plug-ins. But if I launch those tests from within the Maven build the target platform contains only an osgi and some launcher bundles.
>
> Sounds like a mistake in the Maven build, but lets discuss what Maven Tycho does: It creates a directory it uses as %ECLIPSE_HOME%. This directory contains a plugins folder containing the osgi and the launcher bundles. It also contains a configuration folder in which they place the config.ini file. This config.ini file defines all bundles which should be installed / started for the Eclipse test instance. They can be resolved correctly, but all references to bundles point to my local Maven Repository. So the configuration by Tycho looks fine, but different to what %ECLIPSE_HOME% normally looks like. Normally all installed plugins will be located in the plugins directory of %ECLIPSE_HOME%. In this case not, but is that really wrong?
>
> Is it correct, that PDE is not using the config.ini file to resolve the contents of the default target platform?
>
>
> I already started a discussion on the tycho-users mailinglist with that problem, but they are not sure about what PDE requires in this case. The discussion can be found here: http://software.2206966.n2.nabble.com/Eclipse-UI-Tests-with- maven-osgi-test-plugin-td6036492.html
> You can also find a simple test project there which can be build with maven to demonstrate the problem.


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Eclipse Community Award 2011: Best Modeling Tool
Re: Default Target Platform is empty while launching Eclipse by Maven tests [message #665995 is a reply to message #665935] Mon, 18 April 2011 10:03 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 745
Registered: July 2009
Location: Grenoble, France
Senior Member
I opened bug 343152 (againt Tycho) and bug 343156 (against PDE) to track this issue.

--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Eclipse Community Award 2011: Best Modeling Tool
Re: Default Target Platform is empty while launching Eclipse by Maven tests [message #987608 is a reply to message #665995] Tue, 27 November 2012 05:24 Go to previous messageGo to next message
Filip Krikava is currently offline Filip Krikava
Messages: 43
Registered: January 2012
Member
Hi,

I'm also having the same issue. I was wondering if you managed to find some feasible workaround for it?

I checked the bugs, but there does not seem to be any development.

Thanks
Filip
Re: Default Target Platform is empty while launching Eclipse by Maven tests [message #987647 is a reply to message #987608] Tue, 27 November 2012 07:29 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1324
Registered: July 2009
Senior Member
On 11/27/2012 11:24 AM, Filip Krikava wrote:
> Hi,
>
> I'm also having the same issue. I was wondering if you managed to find
> some feasible workaround for it?
> I checked the bugs, but there does not seem to be any development.
>
> Thanks
> Filip

Hi

I remember this related discussion I started last year

http://comments.gmane.org/gmane.comp.ide.eclipse.tycho.user/421

the answers I got back then were some of the main reasons that made me
switch to Buckminster :)

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: Default Target Platform is empty while launching Eclipse by Maven tests [message #987718 is a reply to message #987647] Tue, 27 November 2012 12:50 Go to previous message
Filip Krikava is currently offline Filip Krikava
Messages: 43
Registered: January 2012
Member
Thanks a lot Lorenzo! I actually like the wat Mickael solved it in GMF - providing a new target platform that is resolved to the runtime one. I'm still on 3.7 though, but another incentive to upgrade!

@Mickael: how about to update the respective bugs to point to your solution? I can imagine it might be very useful somebody later Smile
Previous Topic:Job-buffer for IDocument
Next Topic:eclipse plugin: help getOffset in Position
Goto Forum:
  


Current Time: Sat Aug 30 04:29:54 EDT 2014

Powered by FUDForum. Page generated in 0.25083 seconds