I'm interested how I can read OSGI bundle jar file version with Java before I deploy it? Is there a way to extract this data before deploying it?
Read OSGI bundle version
1.3k Views Asked by Peter Penzov At
2
There are 2 best solutions below
0

If you just want to get the version it might be completely overkill, but in general a really good way to read all kind of bundle data is to use bnd. Many tools are built on top of bnd, but it's easy to use as a library as well.
You can do it with standard Java:
Constants class comes from org.osgi.framework package.