Hi JB,

I'm not declaring the dependency myself, the iPOJO jar [1] does in its 
manifest, which I cannot change.

The Manifest has:
Import-Package: [...], org.osgi.framework;version=1.3, [...]

Where the org.osgi.framework import will be resolved to version 1.7 (in current 
frameworks), since
org.osgi.framework;version=1.3
is equivalent to
org.osgi.framework;version="[1.3, <infinity>)"

Regards,
Benjamin

[1] mvn:org.apache.felix/org.apache.felix.ipojo/1.10.1


-----Original Message-----
From: Jean-Baptiste Onofré [mailto:[email protected]] 
Sent: Dienstag, 1. Oktober 2013 09:21
To: [email protected]
Subject: Re: Features maven plugin verify: fails to interpret single version 
correctly

Hi Benjamin,

What's the version range syntax you used ?
Did you try [1.3,) ?

Regards
JB

On 10/01/2013 09:16 AM, Benjamin Debeerst wrote:
> Hello all,
>
> When validating my own feature xml, I stumbled upon package imports 
> with an explicit version, which cannot be resolved correctly by the 
> maven-features-plugin.
>
> version=1.3 has to be resolved to version=[1.3,infinity) (OSGi r5 Core 
> spec section 3.2.6), instead the maven-features-plugin fails the validation.
>
> Use the following feature descriptor as example:
>
> <feature name="org.apache.felix.ipojo" version="1.10.1">
>
>      
> <bundle>mvn:org.apache.felix/org.apache.felix.ipojo/1.10.1</bundle>
>
> </feature>
>
> With a system export config as here:
> https://fisheye6.atlassian.com/browse/camel-git/platforms/karaf/featur
> es/src/main/resources/config.properties?hb=true
>
> (See also the SO question I asked before, where I did not know that 
> part of the spec yet:
> http://stackoverflow.com/questions/19098447/are-package-imports-of-org
> -osgi-treated-differently
> )
>
> Is this a known bug or should I rise an issue? Are there any known 
> workarounds?
>
> Regards,
>
> Benjamin
>

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

Reply via email to