Tycho vs pde build - include/require host plugins for fragments

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Tycho vs pde build - include/require host plugins for fragments

jserup1234
I extend org.eclipse.emf.ecore with a fragment in an eclipse RCP project where I also have emf on the target platform. The product builds fine using PDE build.

But to build the same product with tycho I manually need to add org.eclipse.emf.ecore as a required plugin to the MANIFEST file of the plugin which use the extensions from the fragment.

I have also tried to specify the dependency as an import but it only works when I specify it as a required dependency.

I get a whole page of these type of errors when importing instead of requiring org.eclipse.emf.ecore:

[ERROR] Access restriction: The method eNotify(Notification) from the type BasicNotifierImpl is not accessible due to restriction on classpath entry C:\Users\ss\.m2\repositor
y\p2\osgi\bundle\org.eclipse.
emf.common\2.6.0.v20100914-1218\org.eclipse.emf.common-2.6.0.v20100914-1218.jar
[ERROR] -> [Help 1]
[ERROR]
..

As I understand the fragment host must be included when building a product. But why do I need to specify is as a required dependency when building with tycho?

I have the same problem with:

org.eclipse.swt
org.eclipse.jface.databinding

which must also be required. Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Tycho vs pde build - include/require host plugins for fragments

sandy4k
This post has NOT been accepted by the mailing list yet.
Hi,

I am also facing the same problem.
Can someone please explain.

Regards,
Sandeep.
Reply | Threaded
Open this post in threaded view
|

Re: Tycho vs pde build - include/require host plugins for fragments

Igor Fedorenko-2
In reply to this post by jserup1234
It is hard to say much without looking at actual problem. Do you think
you can provide standalone sample project that demonstrates the problem?

--
Regards,
Igor

On 11-03-15 04:13 PM, jserup1234 wrote:

> I extend org.eclipse.emf.ecore with a fragment in an eclipse RCP project
> where I also have emf on the target platform. The product builds fine
> using PDE build.
>
> But to build the same product with tycho I manually need to add
> org.eclipse.emf.ecore as a required plugin to the MANIFEST file of the
> plugin which use the extensions from the fragment.
>
> I have also tried to specify the dependency as an import but it only
> works when I specify it as a required dependency.
>
> I get a whole page of these type of errors when importing instead of
> requiring org.eclipse.emf.ecore:
>
> [ERROR] Access restriction: The method eNotify(Notification) from the
> type BasicNotifierImpl is not accessible due to restriction on classpath
> entry C:\Users\ss\.m2\repositor
> y\p2\osgi\bundle\org.eclipse.
> emf.common\2.6.0.v20100914-1218\org.eclipse.emf.common-2.6.0.v20100914-1218.jar
>
> [ERROR] -> [Help 1]
> [ERROR]
> ..
>
> As I understand the fragment host must be included when building a
> product. But why do I need to specify is as a required dependency when
> building with tycho?
>
> I have the same problem with:
>
> org.eclipse.swt
> org.eclipse.jface.databinding
>
> which must also be required. Any ideas?
>
> ------------------------------------------------------------------------
> View this message in context: Tycho vs pde build - include/require host
> plugins for fragments
> <http://software.2206966.n2.nabble.com/Tycho-vs-pde-build-include-require-host-plugins-for-fragments-tp6174156p6174156.html>
> Sent from the Tycho Users mailing list archive
> <http://software.2206966.n2.nabble.com/Tycho-Users-f3053503.html> at
> Nabble.com.
Reply | Threaded
Open this post in threaded view
|

RE: Tycho vs pde build - include/require host plugins for fragments

Tobias Oberlies
In reply to this post by jserup1234
> I extend org.eclipse.emf.ecore with a fragment in an eclipse RCP project
> where I also have emf on the target platform. The product builds fine
> using PDE build.

Do you mean the product export wizard? Note that that wizard is essentially broken because it doesn't use p2 to create the installations.

> But to build the same product with tycho I manually need to add
> org.eclipse.emf.ecore as a required plugin to the MANIFEST file of the
> plugin which use the extensions from the fragment.

This should not be necessary if you use Tycho's approach for building p2-enabled installations as described here: https://docs.sonatype.org/display/TYCHO/PackagingTypes#PackagingTypes-eclipserepository

Other than that I can only second Igor: An example project would be extremely useful.

Regards
Tobias