I think I found a little problem in the spring osgi maven archetype. It concerns the Bundle-Version header.

When generating my project via M2Eclipse, maven created a pom file with bundlor as the Manifest file "manager" with some preset directives, namely:

<manifestHeaders><![CDATA[Bundle-ManifestVersion: 2
Bundle-Name: article-rest
Bundle-Version: 0.0.1-SNAPSHOT
Bundle-SymbolicName: article-rest
Spring-DM-Version: ${spring.osgi.version}
]]></manifestHeaders>

It appears that when installing this bundle in my local repository, and then loading it in my servicemix4 server, I get this exception:

servicemix osgi> install -s mvn:com.testing.rest/article-rest
java.lang.NumberFormatException: For input string: "1-SNAPSHOT"
at java.lang.NumberFormatException.forInputString(Num berFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Integer.parseInt(Integer.java:497)
at org.osgi.framework.Version.<init>(Version.java:136 )
%< snip

I fixed it by setting the Bundle-version header to:
0.0.1.SNAPSHOT instead of 0.0.1-SNAPSHOT

Now it works.