Could you try to change the version of the feature and the bundle from 0.0.1-SNAPSHOT to 1.0-SNAPSHOT and see if this changes anything? (It works in my projects with 1.0-SNAPSHOT ....)
2014-07-23 12:25 GMT+02:00 rsteppac <[email protected]>: > Could someone please direct me to a resource that explains how to deploy a > bundle, built with Maven, as a SNAPSHOT version in Karaf 3.0.1? > > I used the karaf-maven-plugin (v 3.0.1) to create the feature file > (<packaging>feature</packaging>). The file looks like this: > > <features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" > name="pep-poc-osgi"> > <feature name="pep-poc-osgi" version="0.0.1-SNAPSHOT" description="OSGi > wrapper build"> > <details>...</details> > <bundle>mvn:ch.vivates.poc/pep-poc/0.0.1-SNAPSHOT</bundle> > <bundle>mvn:org.apache.camel/camel-core/2.13.1</bundle> > > </feature> > </features> > > I can add the feature repository to Karaf: > > karaf@root()> feature:repo-add > mvn:ch.vivates.poc/pep-poc-osgi/0.0.1-SNAPSHOT/xml/features > Adding feature url > mvn:ch.vivates.poc/pep-poc-osgi/0.0.1-SNAPSHOT/xml/features > > But installing the fueature fails: > > karaf@root()> feature:install pep-poc-osgi > Error executing command: invalid version "0.0.1-SNAPSHOT": non-numeric > "1-SNAPSHOT" > > Now I understand that a "-" is not a legal character in an OSGi version. > But > if it is not taken care off behind the scenes, where do I have to > intervene? > > Thanks! > Ralf > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Deploying-a-maven-built-SNAPSHOT-bundle-tp4034397.html > Sent from the Karaf - User mailing list archive at Nabble.com. >
