You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Alasdair Nottingham <no...@apache.org> on 2011/07/07 20:00:56 UTC
Maven bundle plugin and DynamicImport-Package
Hi,
I have just created a bundle that does a DynamicImport-Package. Is it
possible to get the Maven bundle plugin to generate the package version
range in the same way it does for normal Import-Package statements?
Thanks
Alasdair
--
Alasdair Nottingham
not@apache.org
Re: Maven bundle plugin and DynamicImport-Package
Posted by Alasdair Nottingham <no...@apache.org>.
How does exporting a package help? I don't have the package in my bundle, so
that doesn't make sense to me.
Alasdair
On 12 July 2011 15:28, Peter Kriens <pe...@aqute.biz> wrote:
> As you're VERY closely tied to the spec package I would just export the
> package ...
>
> Kind regards,
>
> Peter Kriens
>
>
>
> On 12 jul 2011, at 11:21, Alasdair Nottingham wrote:
>
> > No it doesn't. I'm taking advantage of the "deferred resolution"
> behaviour
> > of DynamicImport-Package rather than the up front resolution. My scenario
> is
> > that I have a bundle that registers the OSGi MBeans as services. I want
> to
> > register the framework mbeans, but defer registration of the ConfigAdmin
> etc
> > MBeans until the services are available. An optional import would be
> > resolved up front and if I don't have a ConfigAdmin provider at startup
> the
> > bundle would never be able to deal with the ConfigAdmin MBeans. This is
> not
> > what I want.
> >
> > Alasdair
> >
> > On 12 July 2011 10:01, Peter Kriens <pe...@aqute.biz> wrote:
> >
> >> Doesn't optional then work better (if you know the packages)?
> >>
> >> Kind regards,
> >>
> >> Peter Kriens
> >>
> >> On 7 jul 2011, at 20:00, Alasdair Nottingham wrote:
> >>
> >>> Hi,
> >>>
> >>> I have just created a bundle that does a DynamicImport-Package. Is it
> >>> possible to get the Maven bundle plugin to generate the package version
> >>> range in the same way it does for normal Import-Package statements?
> >>>
> >>> Thanks
> >>> Alasdair
> >>>
> >>> --
> >>> Alasdair Nottingham
> >>> not@apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> >>
> >
> >
> > --
> > Alasdair Nottingham
> > not@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Alasdair Nottingham
not@apache.org
Re: Maven bundle plugin and DynamicImport-Package
Posted by Peter Kriens <pe...@aqute.biz>.
As you're VERY closely tied to the spec package I would just export the package ...
Kind regards,
Peter Kriens
On 12 jul 2011, at 11:21, Alasdair Nottingham wrote:
> No it doesn't. I'm taking advantage of the "deferred resolution" behaviour
> of DynamicImport-Package rather than the up front resolution. My scenario is
> that I have a bundle that registers the OSGi MBeans as services. I want to
> register the framework mbeans, but defer registration of the ConfigAdmin etc
> MBeans until the services are available. An optional import would be
> resolved up front and if I don't have a ConfigAdmin provider at startup the
> bundle would never be able to deal with the ConfigAdmin MBeans. This is not
> what I want.
>
> Alasdair
>
> On 12 July 2011 10:01, Peter Kriens <pe...@aqute.biz> wrote:
>
>> Doesn't optional then work better (if you know the packages)?
>>
>> Kind regards,
>>
>> Peter Kriens
>>
>> On 7 jul 2011, at 20:00, Alasdair Nottingham wrote:
>>
>>> Hi,
>>>
>>> I have just created a bundle that does a DynamicImport-Package. Is it
>>> possible to get the Maven bundle plugin to generate the package version
>>> range in the same way it does for normal Import-Package statements?
>>>
>>> Thanks
>>> Alasdair
>>>
>>> --
>>> Alasdair Nottingham
>>> not@apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
> --
> Alasdair Nottingham
> not@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven bundle plugin and DynamicImport-Package
Posted by Alasdair Nottingham <no...@apache.org>.
No it doesn't. I'm taking advantage of the "deferred resolution" behaviour
of DynamicImport-Package rather than the up front resolution. My scenario is
that I have a bundle that registers the OSGi MBeans as services. I want to
register the framework mbeans, but defer registration of the ConfigAdmin etc
MBeans until the services are available. An optional import would be
resolved up front and if I don't have a ConfigAdmin provider at startup the
bundle would never be able to deal with the ConfigAdmin MBeans. This is not
what I want.
Alasdair
On 12 July 2011 10:01, Peter Kriens <pe...@aqute.biz> wrote:
> Doesn't optional then work better (if you know the packages)?
>
> Kind regards,
>
> Peter Kriens
>
> On 7 jul 2011, at 20:00, Alasdair Nottingham wrote:
>
> > Hi,
> >
> > I have just created a bundle that does a DynamicImport-Package. Is it
> > possible to get the Maven bundle plugin to generate the package version
> > range in the same way it does for normal Import-Package statements?
> >
> > Thanks
> > Alasdair
> >
> > --
> > Alasdair Nottingham
> > not@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Alasdair Nottingham
not@apache.org
Re: Maven bundle plugin and DynamicImport-Package
Posted by Peter Kriens <pe...@aqute.biz>.
Doesn't optional then work better (if you know the packages)?
Kind regards,
Peter Kriens
On 7 jul 2011, at 20:00, Alasdair Nottingham wrote:
> Hi,
>
> I have just created a bundle that does a DynamicImport-Package. Is it
> possible to get the Maven bundle plugin to generate the package version
> range in the same way it does for normal Import-Package statements?
>
> Thanks
> Alasdair
>
> --
> Alasdair Nottingham
> not@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org