Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2(org.eclipse.equinox.ds 1.4.1 vs 1.4.0)
Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033612] Thu, 04 April 2013 12:37 Go to next message
Tobias Bertelsen is currently offline Tobias Bertelsen
Messages: 22
Registered: October 2011
Junior Member
Hi there.

Problem
I'm having a small problem with in the Buckminster headless product. Essentially I'm trying to include Buckminster product feature when installing an Eclipse 3.8.2.
There is however a conflict between the included plugins:

  • Eclipse 3.8.2 includes org.eclipse.equinox.ds 1.4.1.v20120926-201320
  • Buckminster headless product include org.eclipse.equinox.ds 1.4.0.v20120522-1841


Possible solution:
My best guess is, that this could be solved, if you would rebuild the headless Buckminster p2-repository, so it contains the latest version of the Eclipse bundles.

Is this possible? Or do I need to figure out an other workarround?


Error log from the P2-director
Installation failed.
Cannot complete the install because of a conflicting dependency.
Software being installed: Buckminster Product 1.5.0.v20121128-1216 (org.eclipse.buckminster.product.feature.group 1.5.0.v20121128-1216)
Software being installed: Equinox Target Components 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB (org.eclipse.equinox.sdk.feature.group 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB)
Only one of the following can be installed at once: 
Declarative Services 1.4.1.v20120926-201320 (org.eclipse.equinox.ds 1.4.1.v20120926-201320)
Declarative Services 1.4.0.v20120522-1841 (org.eclipse.equinox.ds 1.4.0.v20120522-1841)
Cannot satisfy dependency:
From: Buckminster Product 1.5.0.v20121128-1216 (org.eclipse.buckminster.product.feature.group 1.5.0.v20121128-1216)
To: org.eclipse.equinox.ds [1.4.0.v20120522-1841]
Cannot satisfy dependency:
From: Equinox Core Function 1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK (org.eclipse.equinox.core.feature.feature.group 1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK)
To: org.eclipse.equinox.ds [1.4.1.v20120926-201320]
Cannot satisfy dependency:
From: Equinox Target Components 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB (org.eclipse.equinox.sdk.feature.group 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB)
To: org.eclipse.equinox.core.feature.feature.group [1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK]
Application failed, log file location: 


Thanks Smile
Tobias Bertelsen
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033654 is a reply to message #1033612] Thu, 04 April 2013 13:33 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 2013-04-04 14:37, Tobias Bertelsen wrote:
> Hi there.
>
> Problem
> I'm having a small problem with in the Buckminster headless product.
> Essentially I'm trying to include Buckminster product feature when
> installing an Eclipse 3.8.2.

In that case you're doing something wrong. You should not attempt to
install the Buckminster product into another product. Install the
features that you need instead.

- thomas
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033666 is a reply to message #1033612] Thu, 04 April 2013 13:48 Go to previous messageGo to next message
Peter Nehrer is currently offline Peter Nehrer
Messages: 240
Registered: July 2009
Senior Member
I'm running into the same problem when trying to include Buckminster
Headless in my target platform (via p2) with Eclipse SDK.

Thomas, are there any plans to change how Headless is packaged? Maybe it
could pull in Platform dependencies instead of including them.

On 4/4/13 8:37 AM, Tobias Bertelsen wrote:
> Hi there.
>
> Problem
> I'm having a small problem with in the Buckminster headless product.
> Essentially I'm trying to include Buckminster product feature when
> installing an Eclipse 3.8.2.
> There is however a conflict between the included plugins:
>
> Eclipse 3.8.2 includes org.eclipse.equinox.ds 1.4.1.v20120926-201320
> Buckminster headless product include org.eclipse.equinox.ds
> 1.4.0.v20120522-1841
>
>
> Possible solution:
> My best guess is, that this could be solved, if you would rebuild the
> headless Buckminster p2-repository, so it contains the latest version of
> the Eclipse bundles.
>
> Is this possible? Or do I need to figure out an other workarround?
>
>
> Error log from the P2-director
>
> Installation failed.
> Cannot complete the install because of a conflicting dependency.
> Software being installed: Buckminster Product 1.5.0.v20121128-1216
> (org.eclipse.buckminster.product.feature.group 1.5.0.v20121128-1216)
> Software being installed: Equinox Target Components
> 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB
> (org.eclipse.equinox.sdk.feature.group
> 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB)
> Only one of the following can be installed at once: Declarative Services
> 1.4.1.v20120926-201320 (org.eclipse.equinox.ds 1.4.1.v20120926-201320)
> Declarative Services 1.4.0.v20120522-1841 (org.eclipse.equinox.ds
> 1.4.0.v20120522-1841)
> Cannot satisfy dependency:
> From: Buckminster Product 1.5.0.v20121128-1216
> (org.eclipse.buckminster.product.feature.group 1.5.0.v20121128-1216)
> To: org.eclipse.equinox.ds [1.4.0.v20120522-1841]
> Cannot satisfy dependency:
> From: Equinox Core Function
> 1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK
> (org.eclipse.equinox.core.feature.feature.group
> 1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK)
> To: org.eclipse.equinox.ds [1.4.1.v20120926-201320]
> Cannot satisfy dependency:
> From: Equinox Target Components
> 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB
> (org.eclipse.equinox.sdk.feature.group
> 3.8.0.v20121212-203907-7M7fA78g4_y-edvtH0ZcEC5NOFTB)
> To: org.eclipse.equinox.core.feature.feature.group
> [1.1.0.v20121002-131448-7K7XFKwF7RZHQ_I5Xk8T5irEK]
> Application failed, log file location:
>
> Thanks :)
> Tobias Bertelsen
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033697 is a reply to message #1033654] Thu, 04 April 2013 14:33 Go to previous messageGo to next message
Tobias Bertelsen is currently offline Tobias Bertelsen
Messages: 22
Registered: October 2011
Junior Member
Thomas Hallgren wrote on Thu, 04 April 2013 15:33
On 2013-04-04 14:37,
In that case you're doing something wrong. You should not attempt to
install the Buckminster product into another product. Install the
features that you need instead.


Let's say I needed the org.eclipse.buckminster.installer bundle. This has no dependencies, but it is included in two features, org.eclipse.buckminster.core.feature and org.eclipse.buckminster.product. The core feature contains a lot of UI plugins, so if I don't want those I'm left with the product feature.

A workarround to get org.eclipse.buckminster.cmdline and org.eclipse.buckminster.runtime is to just install org.eclipse.buckminster.core.headless.feature. This will drag them in as dependencies. You can't get the installer this way, as nothing depends on it.


Yet another way to solve this is to change the structure of the product feature. Let's say you divided the product into two features: Buckminster-essentials and Eclipse-essentials (see below). In this case users like me, could choose only to import the Buckminster essentials.

This will yield an inclusion tree like this:
-org.eclipse.buckminster.product
  -org.eclipse.buckminster.essentials.feature
     org.eclipse.buckminster.cmdline
     org.eclipse.buckminster.installer
     org.eclipse.buckminster.runtime
  -org.eclipse.buckminster.eclipseessentials.feature
     org.eclipse.core.runtime
     org.eclipse.equinox.ds
     org.eclipse.equinox.simpleconfigurator
    -org.eclipse.equinox.p2.director.feature
       ...
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033715 is a reply to message #1033697] Thu, 04 April 2013 14:57 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 2013-04-04 16:33, Tobias Bertelsen wrote:
> Thomas Hallgren wrote on Thu, 04 April 2013 15:33
>> On 2013-04-04 14:37, In that case you're doing something wrong. You
>> should not attempt to install the Buckminster product into another
>> product. Install the features that you need instead.
>
>
> Let's say I needed the org.eclipse.buckminster.installer bundle. This
> has no dependencies, but it is included in two features,
> org.eclipse.buckminster.core.feature and
> org.eclipse.buckminster.product. The core feature contains a lot of UI
> plugins, so if I don't want those I'm left with the product feature.
>
The product contains headless features that indeed does conflict with
the IDE product. This is intentional. The features are named headless to
emphasize the fact that they are not intended to be installed into the IDE.

Why do you want to avoid the Buckminster UI feature when you're
installing into Eclipse?

> A workarround to get org.eclipse.buckminster.cmdline and
> org.eclipse.buckminster.runtime is to just install
> org.eclipse.buckminster.core.headless.feature. This will drag them in as
> dependencies. You can't get the installer this way, as nothing depends
> on it.
>
The installer is just a thin layer on top of the director. It was
created before the director existed and then kept around for backward
compatibility. The director provides all the functionality so you don't
really need the installer.

>
> Yet another way to solve this is to change the structure of the product
> feature. Let's say you divided the product into two features:
> Buckminster-essentials and Eclipse-essentials (see below). In this case
> users like me, could choose only to import the Buckminster essentials.
>
The former doesn't sound like a product feature to me. A product defines
a root (with binaries etc.). Installing a product into another product
is bound to produce conflicts.

- thomas
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033719 is a reply to message #1033666] Thu, 04 April 2013 15:04 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 2013-04-04 15:48, Peter Nehrer wrote:
> I'm running into the same problem when trying to include Buckminster
> Headless in my target platform (via p2) with Eclipse SDK.
>
Why not just include the core headless core feature then? If you have
the SDK in there, then surely you don't need the Buckminster product.

> Thomas, are there any plans to change how Headless is packaged? Maybe it
> could pull in Platform dependencies instead of including them.

But we already do that! Not for the product mind you, but well for the
features.

Again, a product is not meant to be installed into other types of
constellations. Please use the features instead. That's why we have
them. If you feel that some type of feature is missing, then we can
discuss that. The headless product will however not change in this respect.

- thomas
Re: Buckminster headless product has a version conflict with Eclipse 3.8.2 and 4.2.2 [message #1033735 is a reply to message #1033719] Thu, 04 April 2013 15:24 Go to previous message
Peter Nehrer is currently offline Peter Nehrer
Messages: 240
Registered: July 2009
Senior Member
I see, thank you for the pointers -- I have to take another look at this.

Essentially what I tried to do at some point was to create a top-level
product (custom) that includes all Buckminster features that I wanted in
that root IU. For that I had to pull everything into my target platform
(and I had other things in it) and that's where I ran into trouble.

I wish there was a way to mirror-in existing features from an external
p2 repository instead of pulling them into the target platform (and
losing all kinds of metadata in the process). Maybe b3 does that?
Haven't looked.

I ended up just requiring all those features so they do get installed in
the end, but that's not exactly the same thing.

Anyway I see your point, I'll take another look. Thanks.

On 4/4/13 11:04 AM, Thomas Hallgren wrote:
> On 2013-04-04 15:48, Peter Nehrer wrote:
>> I'm running into the same problem when trying to include Buckminster
>> Headless in my target platform (via p2) with Eclipse SDK.
>>
> Why not just include the core headless core feature then? If you have
> the SDK in there, then surely you don't need the Buckminster product.
>
>> Thomas, are there any plans to change how Headless is packaged? Maybe it
>> could pull in Platform dependencies instead of including them.
>
> But we already do that! Not for the product mind you, but well for the
> features.
>
> Again, a product is not meant to be installed into other types of
> constellations. Please use the features instead. That's why we have
> them. If you feel that some type of feature is missing, then we can
> discuss that. The headless product will however not change in this respect.
>
> - thomas
>
Previous Topic:xtext P2 referencing specific version with P2 reader.
Next Topic:gerrit for buckminster
Goto Forum:
  


Current Time: Tue Sep 23 04:38:04 GMT 2014

Powered by FUDForum. Page generated in 0.04520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software