Bnd is a tooling suite for building OSGi bundles. Its primary function is generating OSGi meta data by analyzing Java classes.
There are plugins for popular tools like Eclipse, Maven and Gradle.