Hi Robert, as far as I know for retrieving the GAVs there is only the web console plugin at https://github.com/apache/felix/blob/trunk/webconsole-plugins/packageadmin/src/main/java/org/apache/felix/webconsole/plugins/packageadmin/internal/WebConsolePlugin.java#L280, which is looking up the GAV for one specific package. Just pay attention that: a) OSGi bundles not created by the maven-bundle-plugin will not carry the pom.properties files b) One bundle may contain several GAVs (by embedding other artifacts)
Also I would think that such a servlet may also be useful to create a dependency management section within a pom (for depending on the version of the dependency which is actually used in Sling). I would prefer to have that servlet at Felix in the form of another web console. Konrad > Am 16.02.2016 um 22:33 schrieb Robert Munteanu <[email protected]>: > > Hi, > > In the light of SLING-3605 [0] which will bring the Eclipse tooling the > ability to automagically configure debugging to use the sources of the > bundles deployed on a Sling instance, I will need to create a new > tooling/support bundle. > > For now, this bundle will expose a servlet which returns a list of all > bundles installed in a Sling runtime, together with source lookup > hints. > > The only source lookup hints that I have at the moment are the Maven > GAV coordinates. These are located inside the bundle in a file named > /META-INF/maven/${artifactId}/pom.properties. > > I did not see a way to retrieve this using existing HTTP APIs or the > web console so I'm going to create my own. > > Two questions: > > a) Is there already a way to retrieve this info that I missed? > b) What would be a good bundle symbolic name for this bundle? > > For b) I am considering org.apache.sling.tooling.support.introspection > or org.apache.sling.tooling.support.info , but maybe someone has a > better suggestion :-) > > Thanks, > > Robert > > > [0]: https://issues.apache.org/jira/browse/SLING-3605
