Hello, I want to create a self-contained OSGi bundle which uses some Spring/JPA features like the auto generated repositories (PagingAndSortingRepository). I configured my pom.xml as a bundle, and it builds correctly. The problem is though, non-Maven dependencies like the Spring stuff cannot easily be incorporated into an OSGi runtime. There are functions like Karaf's wrap which works well (converts non-OSGi bundles to OSGi on the fly), but that causes all sorts of stuff to be exported and causing problems like multiple dependency chains resolving to a single package.
In Eclipse using Equinox in the pre-Maven days, I always did the following: - I created a "lib" folder in my project - copied all non-OSGi dependencies there - adjusted the build.properties to include them - set the Bundle-Classpath to include these jars This worked fine. Is it somehow possible to do this with maven-shade-plugin as well? Any help would be greatly appreciated, Jens