Hi

I wrote a small bundle a few years ago that exposed all bundles
installed in a Felix instance as a maven repository (provided they
contain the necessary meta data). There should be significant overlap
in the functionality. The most useful entry point is probably[0]. Feel
free to use any parts of the code as you see fit. Note that
DependencyInspector#getBundleFile(final Bundle bundle) relies on Felix
implementation details, not sure if the same can be done in a more
portable way.

Konrad wrote:
> Also I would think that such a servlet may also be useful to
> create a dependency management section within a pom [...]

The "Artifx" implementation is a webconsole plugin, exposed at
/system/console/artifx and can be used as a maven repository. In
addition it generates a pom containing all dependency information
ready to include in another pom with scope=import. Each dependency is
annotated with it's exported packages in an XML comment for
convenience. Unfortunately this pom is a bit hidden, you find it under
/system/console/artifx/local/generated-pom/{hash of dependencies}/.

Regards
Julian

[0] 
https://github.com/code-distillery/artifx/blob/master/src/main/java/net/distilledcode/artifx/impl/DependencyInspector.java

On Fri, Feb 19, 2016 at 9:13 AM, Grigore Zsolt
<[email protected]> wrote:
> Hi Konrad,
>
> 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
>>
>> I have something similar implemented in [0]. It is part of a small tooling
> bundle for dependency generation, although it is not a web console tab.
> Feel free to use it.
>
> Regards,
> Zsolt
>
> [0]:
> https://github.com/zsoltgrigore/sling-depgen/blob/master/src/main/java/org/konzult/sling/utils/depgen/impl/handler/POMGeneratorImpl.java

Reply via email to