Skip to content

embedded osgi.annotation.jar #130

Answered by tjwatson
laeubi asked this question in Q&A
Oct 6, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

These annotations are compile time only annotations. We should never introduce a solution that would require these packages to actually exist at runtime (i.e. a result that adds `Import-Package: org.osgi.annotation.versioning" to the bundles that compile against them)

But perhaps this is already fixed by PDE/tycho? Looking at my PDE projects for Equinox it seems the "Plug-in Dependencies" classpath container already auto-adds:

plugins/org.osgi.annotation.bundle_2.0.0.202202082230.jar
plugins/org.osgi.annotation.versioning_1.1.2.202109301733.jar
plugins/org.osgi.service.component.annotations_1.5.0.202109301733.jar

I assume the same thing happens with a Tycho/maven build. If that is the cas…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@laeubi
Comment options

laeubi Oct 6, 2022
Maintainer Author

@tjwatson
Comment options

@laeubi
Comment options

laeubi Oct 6, 2022
Maintainer Author

Answer selected by laeubi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants