Hi Chris,

it's normal IMHO: 2.0.0-SNAPSHOT is not a valid OSGi version.
2.0.0.SNAPSHOT is. As the feature resolver is an OSGi resolver, it deals
with OSGi version format.

So, if you want to use 2.0.0-SNAPSHOT, then, you have to write the
features XML by hand, else, the output looks good to me.

Regards
JB

On 14/06/2018 11:10, Chris N. wrote:
> Hello,
> 
> The  VersionCleaner
> <https://github.com/apache/felix/blob/trunk/utils/src/main/java/org/apache/felix/utils/version/VersionCleaner.java>
>  
> .clean() used in the  Feature
> <https://github.com/apache/karaf/blob/master/features/core/src/main/java/org/apache/karaf/features/internal/model/Feature.java>
>  
> .setVersion() method is responsible of the problem, the following test:
> 
>     public static void main(String[] args) {
>         String res = VersionCleaner.clean("2.0.0-SNAPSHOT");
>         System.out.println(res);
>     }
> 
> displays:
>     2.0.0.SNAPSHOT
> 
> Did I miss anything? :)
> 
> Christian
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to