Take the 2-minute tour ×  I have a simple question. I followed
this tutorial and created a HelloWorld osgi bundle. How can i
install and start this bundle using apache Karaf? How can i
refer to the bundle using the osgi:install command?  thank you.
share|improve this question add comment  2 Answers  up vote 1
down vote accepted  Ok, that is another question, but here goes:
You're pretty much on the right track, I've tested the one in
the Karaf developers guide you linked to (the second mvn call).
The documentation isn't quite correct, I needed to change two
things:    • The version is off, 2.2.5 does work (on my
machine), changing it to 2.2.8 seemed to help.   • The package
name is com.mycompany.package. As package is a keyword, that
won't compile, so I've changed it to com.mycompany.bundle.  So
my archetype command was:  mvn archetype:generate \
-DarchetypeGroupId=org.apache.karaf.archetypes \
-DarchetypeArtifactId=karaf-bundle-archetype \
-DarchetypeVersion=2.2.8 \ -DgroupId=com.mycompany \
-DartifactId=c