On 09/13/2015 07:24 PM, Gerard Ryan wrote:
Hi!
I was just looking at the eclipse-m2e-core package & noticed that
/usr/share/eclipse/dropins/ is now /usr/share/eclipse/droplets. What's
the difference? Is this an f24+ change or should the same be done for
f23? Should I make the same change for eclipse-webtools & others in Rawhide?
"P2 Fragments", aka "droplets", is a new feature of Eclipse Luna. For
more details, see upstream pages: [1,2].
From downstream PoV, droplets work similarly to dropins, with one
major
difference: dropins are resolved at runtime by Eclipse P2 reconciler,
while droplet dependencies are resolved at build time during
%mvn_install call. This allows for faster Eclipse startup times as in
case of droplets Eclipse can just load relevant info from fragment.info
file, which is part of droplet, and can assume everything is resolved
and working.
In Fedora, droplets are typically (but not necessarily) created using
%mvn_install macro. XMvn has a special plugin (xmvn-p2-installer-plugin,
part of fedoraproject-p2 [3]) which embeds Eclipse Equinox OSGi
framework within XMvn and uses Eclipse P2 bundles to install and resolve
dependencies of Eclipse plugins and features.
Droplets have been enabled only in rawhide less than month ago.
Downstream-wise I consider/expect them to be F24+ feature.
I've built a version with this change locally and tried it in an
f23 VM
to see if it would work but it didn't appear to. Moving the dir back to
dropins seemed to fix that. I guess I'm just looking for clarity so that
I can put in a conditional or something.
I tested P2 fragments a few months ago and they've been just working for
me. For older Eclipse versions (like F23) you may need to add some extra
parameter to /etc/eclipse.ini:
-Dp2.fragments=/usr/share/eclipse/droplets,/usr/lib64/eclipse/droplets
Apologies if this has already been asked to death...I've been
(and
continue to be) really busy and haven't been paying attention.
It hasn't been announced in Fedora yet, AFAIK.
[1]
https://wiki.eclipse.org/Equinox/p2/P2_Fragments
[2]
https://bugs.eclipse.org/bugs/show_bug.cgi?id=448101
[3]
https://github.com/rgrunber/fedoraproject-p2
--
Mikolaj Izdebski
Software Engineer, Red Hat
IRC: mizdebsk