Eclipse RCP - all possibilities to define dependencies?
Asked Answered
I

1

6

Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources?

Possible dependencies:

  • from other Eclipse RCP Plugins
  • by package, without explicitely defining the plugin
  • jar libs
  • ...
Imparity answered 9/7, 2012 at 11:52 Comment(4)
Am not sure what you mean with filtering by resources? Can you please elaborate a little more on that.Lui
I am not sure Skip is active user. I started bounty in hope to get detailed answer about dependencies in an Eclipse RCP in general.Waylin
Good links are wanted.Waylin
Hey Paul, I am now a little bit more expirienced with RCP - today, if I find some time - I will write down in detail what I found out about dependencies.Imparity
L
1

as you said, you can use the following directives in the MANIFEST.MF to define dependencies

  • Require-Bundle (for depending on specified bundles)
  • Import-Package (for depending on packages available by export from other bundles)
  • Bundle-Classpath (for embedded paths(!) and JARs)

also, when you create a Fragment, it must define its Fragment-Host, of course, and that is also a dependency in a sense

in an RCP project you can setup Features, and you can specify dependencies to bundles for your RCP app in these features

Lanlana answered 22/3, 2013 at 8:27 Comment(5)
Is MANIFEST.MF the only place to define dependencies, even with Tycho?Waylin
@PaulV with Tycho you also have the option to use POMs dependencies section when using tychos <pomDependencies>consider</pomDependencies> but I had mixed experiences with that approach - as far as I know, it's best to rely on MANIFEST.MF and target definition when using tychoLui
@PaulV some helpful links: vogella.com/articles/EclipseTycho/article.html vogella.com/tutorials.html wiki.osgi.org/wiki/MavenTychoEclipsePDEToolchain github.com/jglander/tycho-extras/tree/p2_extras_plugin/review-1/… github.com/reficio/p2-maven-plugin docs.sonatype.org/display/TYCHO/…Lui
@PaulV some more links: eclipse.org/tycho/documentation.php eclipsesource.com/blogs/2012/08/26/… wiki.eclipse.org/Tycho/Reference_CardLui
@Joerg Thank you so much. Why you just don't update you answer, it will be more readable.Waylin

© 2022 - 2024 — McMap. All rights reserved.