Hi everyone,

I created a sample application (source code is available here: https://github.com/neopium/HelloKaraf) with an Hello World bundle that just prints "Hello Karaf!" when starting and "Goobye Karaf" when stopping.

I wanted to add this feature to a custom Karaf distribution and had some troubles.

First, if I add my feature as a startup feature, I have an compilation error:

[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3:assembly (default-assembly) on project assembly: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=hello; type=karaf.feature; filter:="(&(osgi.identity=hello)(type=karaf.feature))"

I then moved the feature at the end of the <bootFeatures> tag and it compiles correctly.

And I don't understand why...

Then, once I managed to generate the custom karaf distribution, I went in the Assembly/target/ folder, uncompressed the tar.gz file and started karaf.

But there is no Hello Karaf message displayed and the command feature:list does not know about my feature.

What did I do wrong?

Kind regards,

Ben

Reply via email to