Reputation:
I created a simple karaf application that just run some calculations.
After that I did mvn clean install
and then I added the bundle to the local maven repository with install:install-file -Dfile=bundle1-1.0-SNAPSHOT.jar -DgroupId=prg.ogra -DartifactId=bundle1 -Dversion=1.0-SNAPSHOT -Dpackaging=jar
Now I run karaf with ./apache-karaf-4.2.0/bin/karaf debug
and when I do install mvn:org.orga/bundle1/0.0.1-SNAPSHOT
I get an error: Error executing command: Error installing bundles: Unable to install bundle mvn:org.orga/bundle1/0.0.1-SNAPSHOT: org.osgi.framework.BundleException: Unable to cache bundle: mvn:org.orga/bundle1/0.0.1-SNAPSHOT
What should I do? Where am I wrong?
Upvotes: 0
Views: 1734
Reputation: 2104
In karaf, run the following:
maven:summary
and make sure karaf is actually linked to the correct local repository.
In addition, navigate to your local repository on the file system and verify that the bundle is located at the maven coordinates you are specifying in the install command. Edit as needed.
Upvotes: 1