You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Ian Boston <ie...@tfd.co.uk> on 2010/07/29 11:52:03 UTC

Exception when bundling commons auth

Hi 
I am seeing the following when executing the maven bundle plugin in commons auth.
The MANIFEST.MF looks Ok.
I think its caused by
 
  <Import-Package>
                            org.apache.sling.api.auth;version="[$(version;==;$(@)),$(version;=+;$(@)))",
                            *
                        </Import-Package>

which is greek to me, without reading the BND docs.

Any ideas,
does it matter
Ian
Caused by: java.lang.IllegalArgumentException: Invalid syntax for version: ${@}
	at aQute.libg.version.Version.<init>(Version.java:45)
	at aQute.lib.osgi.Macro._version(Macro.java:627)




Re: Exception when bundling commons auth

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

On 29.07.2010 11:52, Ian Boston wrote:
> 
> Hi 
> I am seeing the following when executing the maven bundle plugin in commons auth.
> The MANIFEST.MF looks Ok.
> I think its caused by
>  
>   <Import-Package>
>                             org.apache.sling.api.auth;version="[$(version;==;$(@)),$(version;=+;$(@)))",

This is not really greek, rather it is APL ;-) Or, not really ;-)

No, it is a notation to configure the correct import version range for
an API implementor. In this case it generates the range [1.0,1.1).

>                             *
>                         </Import-Package>
> 
> which is greek to me, without reading the BND docs.
> 
> Any ideas,
> does it matter
> Ian
> Caused by: java.lang.IllegalArgumentException: Invalid syntax for version: ${@}
> 	at aQute.libg.version.Version.<init>(Version.java:45)
> 	at aQute.lib.osgi.Macro._version(Macro.java:627)

I do not exactly know, why this is thrown (it is thrown multiple times
during a full Sling build). But the end result is correct and everything
works fine.

So we can just ignore this.

Regards
Felix