I noticed that the org.apache.karaf.tooling:karaf-maven-plugin:jar:2.3.0
does not exist in the maven repo.
I changed it to 3.0.0.RC1
, and now it works well. This solution is OK for Karaf 3.x.
For Karaf 2.x, the problem was really with the packaging. pom is fine with http://karaf.apache.org/manual/latest-2.x/developers-guide/features-maven-plugin-generate.html.
BUT: the features-maven-plugin
's generate-features-xml
does not work at this time, the produced features file is "empty". See the related issue.