felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Gmür <r...@apache.org>
Subject Re: maven-bundle-plugin complaining about target clause in component description
Date Tue, 07 Apr 2015 09:58:33 GMT
Hi Giullaume,

Thanks for your reply. You're right, there's a parenthesis missing.
Unfortunately the parenthesis only got lost when I tried to simplify things
in the email. The actual XML has one more parenthesis, this is an unaltered
copy and paste from it:

<reference name="parser"
interface="org.apache.clerezza.rdf.core.serializedform.Parser"
cardinality="1..1" policy="static"
target="(&amp;(supportedFormat=application/rdf+xml)
(supportedFormat=application/n-triples))" bind="bindParser"
unbind="unbindParser"/>

Cheers,
Reto

On Tue, Mar 24, 2015 at 9:40 AM, Guillaume Nodet <gnodet@apache.org> wrote:

> Aren't you missing a closing parenthesis at the end of your filter ?
>
> 2015-03-24 10:26 GMT+01:00 Reto Gmür <reto@apache.org>:
>
> > Hello,
> >
> > Only when using the maven bundle plugin version > 2.5.0 I get the
> following
> > error when using a target clause combining multiple conditions
> > (target="(&amp;(foo=bar)(name=foo)").
> >
> > Invalid filter syntax in requirement
> >
> >
> osgi.service~~=effective:=active;filter:="(&(objectClass=org.apache.clerezza.rdf.core.serializedform.Parser)(&(foo=bar)(name=foo))".
> > Reason Malformed query
> >
> >
> > This is the entry in xml file in OSGI-INF:
> >
> > <reference name="parser"
> > interface="org.apache.clerezza.rdf.core.serializedform.Parser"
> > cardinality="1..1" policy="static" target="(&amp;(foo=bar)(name=foo)"
> > bind="bindParser" unbind="unbindParser"/>
> >
> >
> > Am I using the wrong syntax and the bundle-plugin just got stricter?
> >
> > Cheers,
> > Reto
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message