Replies: 1 comment 2 replies
-
You need to mange the version somewhere, and as a target is a standalone artifact there is in general not much one ca place such "shared" content, but for updates its actually not a big deal, just select the location and press the "Update" Button in the target editor so you will get the latest version.
Not yet, mostly because there is now UI for such support see for example:
In general you can use any technique you like, e.g. bnd-maven-plugin, tycho "wrap" feature and alike but the most sustainable way is to ask the project to add (proper) OSGi headers in the first place.
Features are usually not required for thrid party dependencies, neverless m2-targets also support generating a feature from the content. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I played around with repackaging the openjfx jars as OSGi bundles. I use the Maven locations in the target definition with the "generate" option and customized bnd instructions. The results are promising, although not yet 100% compatible with the e(fx)clipse runtime, but that is a different topic.
https://github.com/fipro78/javafx-osgi
The build works nice, but I have to specify the org.openjfx library version in the Maven coordinates. I would like to parameterize the build, so it is easy to create the bundles for newer versions with just an environment variable, instead of changing the target definition every time. I tried different ways:
${revision}
${system_property:revision}
${env_var:revision}
But nothing is resolved.
Question 1: Are properties/variables supported for Maven locations in a Target Definition?
Question 2: Would it be possible to do the repackaging in plain Maven so the Target Definition is not required?
(Although I then don't know directly how to build the features. But one step after the other.)
Greez,
Dirk
Beta Was this translation helpful? Give feedback.
All reactions