The correct way is to work with feature dependencies, e.g.


(in the \src\main\feature\feature.xml)

Than the resolver will be able to resolve the missing dependencies. However
from my experience setting the *prerequisite* property to *true *will lead
to various build errors. (Don't know if you did that though).

You also might need to use Maven-Excludes in your feature-pom to avoid some
dependency-pitfalls.

If you add your features to the boot-features in the assembly they won't be
verified (contrary to being listed under startup features). Avoid non-osgi
bundles in your features. (This would lead to the wrap feature being
verified and the build will fail because of missing log-implementation...)

The Karaf-Maven-Plugin is quite tricky to configure right.

Hope that helps,
Mike




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Issue-building-with-karaf-maven-plugin-tp4045602p4045642.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to