>>>>> Steinar Bang <[email protected]>: >> The Karaf main bootstrap looks into the system folder for the artifact (it's >> done in the installAndStartBundles() of Karaf Main). So you have to replace >> in >> the system folder (or use a link here).
> A symlink would seem like the best idea. It's what I do for the osgi > framework and JNA libraries in the lib/boot/ directory. > A symlink pointing to the debian version inside the debian repository > should do the trick. Done! Now karaf boots and runs with osgi 6, and jansi from debian dependencies. I have stripped out all non-karaf jars that aren't needed for the boot. They are fetched if needed from maven central (or other repositories in the list) and added to ~karaf/.m2/repository/ > Does it make sense to keep the modification to > org.ops4j.pax.url.mvn.defaultRepositories? Or should I just remove > that? It does, if one is to follow the recommendations from the debian java maintainers, and split karaf into two packages: karaf and libkaraf-java, with the latter holding the jar files and structuring them in the way expected of debian java packages.
