|Use osgi.java.profile in headless PDE build [message #968451]
||Fri, 02 November 2012 13:23
| Martin Skorsky
Registered: July 2009
I run Eclipse with osgi.java.profile to resolve packages like javax.xml.bind.* properly. Java 7 contains javax.xml.bind in version 2.2.3, but with default settings, the system bundle exports these packages with version 0.0.0.
This is done to avoid javax.xml.bind as a separate bundle and to avoid package uses conflicts. It works OK.
How can I set osgi.java.profile for the PDE headless build? This seems to be tricky since the PDE build can build bundles for different Java runtime versions (Required-ExecutionEnvironment). If the profile is not set, the build cannot resolve all imported packages. In the concrete case javax.xml.bind 2.2.3 is required, but exported with version 0.0.0.
Powered by FUDForum
. Page generated in 0.07555 seconds