Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Headless build doesn't enforce OSGi constraints
Headless build doesn't enforce OSGi constraints [message #55419] Wed, 15 April 2009 23:14 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
I have multiple plugins where some depend on the export packages of
others. If I remove the package from a provider plugin's MANIFEST.MF
Export-Packages, the IDE gives me compile errors, but headless build
still runs successfully. Of course, if I try to run the build product,
I get ClassNotFoundException.

I am wondering if:

A) Enforcing OSGi constraints is not supported in headless build, or
B) My build is set up improperly

If it's B, any ideas what is wrong?

Thanks,
Will
Re: Headless build doesn't enforce OSGi constraints [message #56356 is a reply to message #55419] Thu, 16 April 2009 20:22 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The Headless build does enforce the OSGi constraints.
You would expect the build to fail early on with a message saying your
bundle did not resolve.

Are there perhaps multiple versions of the provider available in the
headless build? Or perhaps other bundles providing the package that are
around in the build but not included in your feature so that they don't
end up in the final archives?


Will Horn wrote:
> I have multiple plugins where some depend on the export packages of
> others. If I remove the package from a provider plugin's MANIFEST.MF
> Export-Packages, the IDE gives me compile errors, but headless build
> still runs successfully. Of course, if I try to run the build product,
> I get ClassNotFoundException.
>
> I am wondering if:
>
> A) Enforcing OSGi constraints is not supported in headless build, or
> B) My build is set up improperly
>
> If it's B, any ideas what is wrong?
>
> Thanks,
> Will
Re: Headless build doesn't enforce OSGi constraints [message #595625 is a reply to message #55419] Thu, 16 April 2009 20:22 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The Headless build does enforce the OSGi constraints.
You would expect the build to fail early on with a message saying your
bundle did not resolve.

Are there perhaps multiple versions of the provider available in the
headless build? Or perhaps other bundles providing the package that are
around in the build but not included in your feature so that they don't
end up in the final archives?


Will Horn wrote:
> I have multiple plugins where some depend on the export packages of
> others. If I remove the package from a provider plugin's MANIFEST.MF
> Export-Packages, the IDE gives me compile errors, but headless build
> still runs successfully. Of course, if I try to run the build product,
> I get ClassNotFoundException.
>
> I am wondering if:
>
> A) Enforcing OSGi constraints is not supported in headless build, or
> B) My build is set up improperly
>
> If it's B, any ideas what is wrong?
>
> Thanks,
> Will
Previous Topic:java.lang.NoClassDefFoundError in Plugin
Next Topic:Unable to export to other platforms
Goto Forum:
  


Current Time: Mon Jun 21 17:50:54 GMT 2021

Powered by FUDForum. Page generated in 0.01365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top