Hi,

Am Dienstag, den 08.03.2011, 11:10 +0000 schrieb Alasdair Nottingham: 
> On 8 March 2011 10:59, Alasdair Nottingham <[email protected]> wrote:
> > On 8 March 2011 10:52, Felix Meschberger <[email protected]> wrote:
> >> Hi,
> >>
> >> Am Dienstag, den 08.03.2011, 10:38 +0000 schrieb Alasdair Nottingham:
> >>> On 8 March 2011 08:56, Felix Meschberger <[email protected]> wrote:
> >>> > Hi all,
> >>> >
> >>> > The JNDI API module still has the OSGi JNDI API sources in it. Shouldn't
> >>> > this be changed to re-export the classes from the official Enterprise
> >>> > library ?
> >>> >
> >>>
> >>> So does blueprint. This isn't a problem, you can have multiple sources of 
> >>> an API
> >>> in OSGi.
> >>
> >> That's not my point ;-) My point is that the source of the API is in the
> >> Apache SVN. I think the pom.xml should have a dependency to the
> >> org.osgi.enterprise artifact and by means of a Export-Package include
> >> the JDNI API package in the final bundle.
> >>
> >> Similar as we do it in the Apache Felix spec implementations (except the
> >> framework which is special ;-) ).
> >
> > I know. I was just pointing to precedence elsewhere in aries and I just 
> > don't
> > see the what the difference is. The code in org.osgi.enterprise
> > is no more or less "official" than the source code in aries.
> >
> >>
> >>>
> >>> > On a related matter: I don't think the import exclusion of the OSGi JNDI
> >>> > API package is not required in this pom.xml.
> >>> >
> >>>
> >>> I'm not sure I follow given the use of the double negative here.
> >>
> >> Point is the pom.xml has:
> >>
> >>       <aries.osgi.import>
> >>            !org.osgi.service.jndi*,
> >>            *
> >>        </aries.osgi.import>
> >>
> >> where this "!org.osgi.service.jndi" part is not needed (actually BND
> >> emits a warning).
> >
> > Raise a bug? I'm happy to fix it.
> >
> 
> Having removed this I now get two warnings, one of which is new.
> 
> [WARNING] Warning building bundle
> org.apache.aries.jndi:org.apache.aries.jndi.api:bundle:0.4-SNAPSHOT :
> Instructions in Private-Package, or -testpackages that are never used:
> org\.apache\.aries\.jndi\.api.*\.impl
> Classpath: Jar:.
> 
> [WARNING] Warning building bundle
> org.apache.aries.jndi:org.apache.aries.jndi.api:bundle:0.4-SNAPSHOT :
> Did not find matching referal for org.apache.aries.*

This is probably related to current parent pom idiosyncracies I
understand Zoe is cleaning up. Basically, if I set these properties:

>   <aries.osgi.private.pkg></aries.osgi.private.pkg>
>   <aries.osgi.import>*</aries.osgi.import>

The build runs propertly and without warnings.

But actually, neither of both should really be required ...

Regards
Felix

> >>
> >> Regards
> >> Felix
> >>
> >>
> >
> >
> >
> > --
> > Alasdair Nottingham
> > [email protected]
> >
> 
> 
> 


Reply via email to