I wonder if we could use classpath scanning to add bnd plugins to the maven-bundle-plugin.

The background of this is that we are currently working on karaf boot. The idea is to be able to add some maven dependencies to your project like karaf-boot-starter-jpa and auto enhance your project with
some dependencies as well as plugins to handle the specific technology.

The big problem is that maven does not allow to add maven plugins from dependencies. So we are thinking about using bnd plugins for our processing. This would work best if the maven-bundle-plugin could auto detect bnd plugins on the classpath. So the karaf boot starters would only need to contain the plugins.

Does this make sense? Are there other ways to enhance a project with kind of "aspects" like jpa support, cdi support or similar?

I know this all can be done with maven plugins but it results in big poms that are not easy to start with.

Christian

--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to