I am developing an OSGI package to parse a PDF file using the PDFBox library. I use maven to create the project, and Karaf the OSGI container. The PDFBox library is compatible with OSGI, so I thought it would be easy. But I just can't get the deployment model.
In a traditional web application, I would build one WAR file containing all the dependencies, and put it in the Servlet container, and it will be deployed. On the other hand, the only way I figured out how to install the osgi package is to do it manually. I have to create an installation instruction file that lists all the dependencies that you need to manually download and copy to the Karaf deployment folder, and be sure to do it in the correct order. I feel like back in the stone ages.
There should be an easier way, right? I still use maven to declare dependencies, but I just need to use the provided scope. It would be great if these dependencies could be automatically installed.
I use maven-bundle-plugin to create a package from my application. It creates the OBR repository (repository.xml), and I tried installing my package using the obr karaf plugin, but it still doesn't help with the dependencies.
maven osgi apache-karaf karaf
palto
source share