Discussion:
[tycho-user] Any workaround for feature patches?
Hussein, Mohamed
2017-02-28 20:42:30 UTC
Permalink
Hi,

I have been working on converting the build of an RCP product we have from PDE build to Tycho (yes, that late, sorry :))

It is all working well, this mailing list, stackoverflow and the wonderful tutorials online are all great (Thanks everyone for the great help), until I started adding our platform feature patches to the build.
I started getting errors like

[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.equinox.p2.core.feature.feature.group 1.3.100.v20150527-1706 to org.eclipse.equinox.p2.core [2.4.0.v20150527-1706].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.debug.ui [3.11.101.v20160203-1230].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.navigator [3.6.0.v20150422-0725].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.navigator.resources [3.5.1.v20160128-1644].; Unable to satisfy dependency from org.eclipse.rcp.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.workbench [3.107.1.v20160120-2131].; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.my.root.feature.group 1.0.0.qualifier
[ERROR] Missing requirement: org.eclipse.platform.feature.group 4.5.2.v20160212-1500 requires 'org.eclipse.debug.ui [3.11.101.v20160203-1230]' but it could not be found
[ERROR] Cannot satisfy dependency: com.my.root.feature.group 1.0.0.qualifier depends on: org.eclipse.platform.feature.group 0.0.0
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.


I started searching online and hit few open[1] bugs[2] and emails sent here before[3] and questions on stackoverflow[4], but I didn't find a solution or a workaround, or my lack of experience in tycho didn't allow me to understand if there is a valid one.
Though it seems that the open issues are old, so definitely those who have faced this have moved forward.

Can someone please point me to a solution or a workaround to be able to build and include eclipse feature patches with tycho?

Best Regards,
Mohamed.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=389698
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=378794
[3] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg03621.html
[4] http://stackoverflow.com/questions/25674136/update-site-eclipse-repository-does-not-contain-new-plugin-of-patch-feature
Felix Dorner
2017-03-01 10:15:19 UTC
Permalink
I just have some pointers, since I was interested in the topic a while ago:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=497840 explains a bit how the
JDT feature patches for beta support for new Java versions are built
Groovy-Eclipse also builds a feature patch into their repository, so you
could look at that too: https://github.com/groovy/groovy-eclipse

hth

On Tue, Feb 28, 2017 at 9:42 PM, Hussein, Mohamed <
Post by Hussein, Mohamed
Hi,
I have been working on converting the build of an RCP product we have from
PDE build to Tycho (yes, that late, sorry J)
It is all working well, this mailing list, stackoverflow and the wonderful
tutorials online are all great (Thanks everyone for the great help), until
I started adding our platform feature patches to the build.
I started getting errors like
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable
to satisfy dependency from org.eclipse.equinox.p2.core.feature.feature.group
1.3.100.v20150527-1706 to org.eclipse.equinox.p2.core
[2.4.0.v20150527-1706].; Unable to satisfy dependency from
org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to
org.eclipse.debug.ui [3.11.101.v20160203-1230].; Unable to satisfy
dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500
to org.eclipse.ui.navigator [3.6.0.v20150422-0725].; Unable to satisfy
dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500
to org.eclipse.ui.navigator.resources [3.5.1.v20160128-1644].; Unable to
satisfy dependency from org.eclipse.rcp.feature.group 4.5.2.v20160212-1500
to org.eclipse.ui.workbench [3.107.1.v20160120-2131].; No solution found
because the problem is unsatisfiable.]
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true,
osgi.arch=x86}
[ERROR] Software being installed: com.my.root.feature.group
1.0.0.qualifier
[ERROR] Missing requirement: org.eclipse.platform.feature.group
4.5.2.v20160212-1500 requires 'org.eclipse.debug.ui
[3.11.101.v20160203-1230]' but it could not be found
[ERROR] Cannot satisfy dependency: com.my.root.feature.group
1.0.0.qualifier depends on: org.eclipse.platform.feature.group 0.0.0
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_
Troubleshooting for help.
I started searching online and hit few open[1] bugs[2] and emails sent
here before[3] and questions on stackoverflow[4], but I didn’t find a
solution or a workaround, or my lack of experience in tycho didn’t allow me
to understand if there is a valid one.
Though it seems that the open issues are old, so definitely those who have
faced this have moved forward.
Can someone please point me to a solution or a workaround to be able to
build and include eclipse feature patches with tycho?
Best Regards,
Mohamed.
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=389698
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=378794
[3] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg03621.html
[4] http://stackoverflow.com/questions/25674136/update-
site-eclipse-repository-does-not-contain-new-plugin-of-patch-feature
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Linux. The choice of a GNU generation.
Hussein, Mohamed
2017-03-01 15:44:13 UTC
Permalink
WOW, Thanks a lot Felix,

I tried reading through both the bugzilla and groovy pom files, but it was too much Klingon for my simple early-morning-before-coffee brain ☺ I will try to give it a deeper look and do some trials.

One thing that caught my eye is this:
I think the "Tycho recommendation" is to do it in two steps. First "build everything" with the desired fix, and save away the repository locally (by which I think they mean the maven repository). So you'd need to do some sort of mvn clean deploy, instead of a simple mvn clean verify as we normally do. Then, second step, do a completely separate build of your feature patch, which makes use of the locally deployed maven repo from the first step so it "picks up" only what you need.


Is there a simple example that shows this in practice, or a place where it is documented?
Also, any thoughts on the cons of this approach that triggered the seemingly more complex approach outlined in the bugzilla.

Best Regards,
Mohamed.

From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Felix Dorner
Sent: Wednesday, March 01, 2017 4:15 AM
To: Tycho user list <tycho-***@eclipse.org>
Subject: Re: [tycho-user] Any workaround for feature patches?

I just have some pointers, since I was interested in the topic a while ago:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=497840 explains a bit how the JDT feature patches for beta support for new Java versions are built
Groovy-Eclipse also builds a feature patch into their repository, so you could look at that too: https://github.com/groovy/groovy-eclipse

hth

On Tue, Feb 28, 2017 at 9:42 PM, Hussein, Mohamed <***@mentor.com<mailto:***@mentor.com>> wrote:
Hi,

I have been working on converting the build of an RCP product we have from PDE build to Tycho (yes, that late, sorry ☺)

It is all working well, this mailing list, stackoverflow and the wonderful tutorials online are all great (Thanks everyone for the great help), until I started adding our platform feature patches to the build.
I started getting errors like

[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.equinox.p2.core.feature.feature.group 1.3.100.v20150527-1706 to org.eclipse.equinox.p2.core [2.4.0.v20150527-1706].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.debug.ui [3.11.101.v20160203-1230].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.navigator [3.6.0.v20150422-0725].; Unable to satisfy dependency from org.eclipse.platform.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.navigator.resources [3.5.1.v20160128-1644].; Unable to satisfy dependency from org.eclipse.rcp.feature.group 4.5.2.v20160212-1500 to org.eclipse.ui.workbench [3.107.1.v20160120-2131].; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=linux, osgi.ws<http://osgi.ws>=gtk, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.my.root.feature.group 1.0.0.qualifier
[ERROR] Missing requirement: org.eclipse.platform.feature.group 4.5.2.v20160212-1500 requires 'org.eclipse.debug.ui [3.11.101.v20160203-1230]' but it could not be found
[ERROR] Cannot satisfy dependency: com.my.root.feature.group 1.0.0.qualifier depends on: org.eclipse.platform.feature.group 0.0.0
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.


I started searching online and hit few open[1] bugs[2] and emails sent here before[3] and questions on stackoverflow[4], but I didn’t find a solution or a workaround, or my lack of experience in tycho didn’t allow me to understand if there is a valid one.
Though it seems that the open issues are old, so definitely those who have faced this have moved forward.

Can someone please point me to a solution or a workaround to be able to build and include eclipse feature patches with tycho?

Best Regards,
Mohamed.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=389698
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=378794
[3] https://dev.eclipse.org/mhonarc/lists/tycho-user/msg03621.html
[4] http://stackoverflow.com/questions/25674136/update-site-eclipse-repository-does-not-contain-new-plugin-of-patch-feature


_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Linux. The choice of a GNU generation.
Loading...