Addons folder dependencies not preserved after update

I have some jars in the addons folder which have dependencies on external bundles.
I have included the dependencies in karaf with:

bundle:install mvn:commons-net/commons-net/3.6
bundle:install mvn:org.apache.httpcomponents/httpcore-osgi/4.4.9
bundle:install mvn:org.apache.httpcomponents/httpclient-osgi/4.5.5

But after every “apt-get upgrade” these bundle:install are gone.
How can I make these bundles permanent?

That is expected behaviour.

You need to find a binding which can be installed through GUI and have the same dependencies.

2 Likes