As far as I can tell you are doing this perfectly fine.
In my tutorials I also use snapshot versions. See
https://github.com/cschneider/Karaf-Tutorial/blob/master/tasklist/tasklist-features/src/main/resources/features.xml
The only difference is that I use 1.0.0-SNAPSHOT. Perhaps the leading 0
makes a difference. If this is the case though then I would consider
this a bug. Can you check with 1.0.0-SNAPSHOT?
If this works and 0.0.1-SNAPHOT not then you most likely have hit a bug.
Christian
On 23.07.2014 12:25, rsteppac wrote:
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.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com