Look at the maven-sling-plugin with embed-dependency element in configuration. You can define which dependencies you want to embed in the bundle. On Wed, 19 Nov 2014 at 00:39 Bruce Edge <[email protected]> wrote:
> What is the preferred way to include a bundle's transitive dependencies in > the jar that is deployed to the OGSI service? > > I read some info on dropping the dependent jars in the WebDAV <jct > root>/libs. Is there some option to mount this at start time, or does one > have to use POST to push deps into the JCR? > I'm concerned with the packaging requirements for target systems. My app > packages do depend on sling, but it seems overly brittle to require that > sling be running at install time in order to populate transitive > dependencies. > > My preference would be to include them in the jar that I deploy to sling. > I know I can use maven-dependency-plugin to populate a folder with my > transitves, but I'm not sure how to package this up so that the OSGI > deployment works. > > -Bruce >
