Hi Konrad, On Wed, 2016-02-17 at 07:46 +0100, Konrad Windszus wrote: > 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/plugin > s/packageadmin/internal/WebConsolePlugin.java#L280, which is looking > up the GAV for one specific package.
Ack, thanks for the info. > 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) Understood. There may be more ways of referencing source code in the future, e.g. Eclipse-SourceBundle headers or or sources placed under OSGI-opt/src so I'll keep this open. > > 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. Yes, I was thinking about that as well, providing a way to 'materialize' a Sling runtime as a Maven project with all dependencies set. As for the Felix submission, I will probably delay this a bit until we have all the details ironed out, but overall I think it's a good idea. Thanks, Robert > 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 >
