2009/4/2 Skinner Chad <[email protected]>

> I have a few projects that I split into packages similar to the following
>
> EJB Bundle
>
> domain.project.ejb.impl
> domain.project.osgi.Activator
>
> Model/Entity Bundle
>
> domain.project.ejb.api
> domain.project.entity
> domain.project.osgi.Activator
>
> BND reports a split bundle since the domain.project.osgi.Activator class in
> each bundle is in the same location in the package structure. Is there a
> configuration directive that I should pass to BND to get rid of the error or
> should I move the Activator classes to unique packages?
>

the output from BND probably looked something like this:

   There are split packages, use directive
-split-package:=(merge-first|merge-last) on instruction to get rid of this
warning

so to avoid the split package warning you would normally use:

   Export-Package: domain.project.osgi;-split-package:=merge-first,
...etc...

but I think it's better to look at why you're getting this warning in the
first place rather than hide it away

in most cases there's no reason to export the package containing your
Activator - the only time you'd
want to is if you're going to share your Activator class with another bundle
- if you don't export it then
you wouldn't get the split-package issue to begin with, as each bundle would
only see their local copy
of the package

perhaps you could share more information about your BND instructions?
(perhaps paste your pom.xml)

Thanks,
> -- Chad
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE.  THE INFORMATION CONTAINED
> HEREIN MAY BE CONFIDENTIAL.  IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU,
> PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY
> CALLING 785-295-3000.  UNAUTHORIZED FORWARDING, PRINTING, COPYING,
> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY
> PROHIBITED AND MAY BE UNLAWFUL.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

-- 
Cheers, Stuart

Reply via email to