Hi, I personnally set dependency version via maven <properties> in my poms, and use the maven filter capability to fill karaf feature bundles version.
Please take a look at this pom where I configure all my dependency Management: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.poms/net.osgiliath.pom.repositories/net.osgiliath.pom.reporting/net.osgiliath.pom.plugins/net.osgiliath.pom.dependency-management/pom.xml This pom to create a feature and filtering feature.xml: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.framework/net.osgiliath.features/net.osgiliath.feature.activemq/pom.xml And one of the according feature.xml: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.framework/net.osgiliath.features/net.osgiliath.feature.activemq/src/main/resources/net.osgiliath.feature.activemq.xml Regards, 2016-11-01 20:46 GMT+01:00 Jean-Baptiste Onofré <[email protected]>: > Hi, > > it will use the version from the dependencies set. > > Regards > JB > > > On 11/01/2016 06:17 PM, Benson Margulies wrote: > >> Folks, >> >> I had this idea that I could set up a template in a >> src/main/feature.xml and have the karaf-maven-plugin fill in the >> versions. This idea is suggested, but not precisely promised, by the >> documentation. >> >> Something like: >> >> <bundle>mvn:org.ops4j.pax.logging/pax-logging-api/</bundle> >> >> and the version would appear. I know I can put in a property >> reference, but I want the version number as resolved by maven from the >> dependency graph. Is there a way that I am missing? >> >> --benson >> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent
