Building plugins with non-default bundle root location [message #629546] |
Tue, 28 September 2010 12:14  |
Eclipse User |
|
|
|
PDE comes with a new feature in Eclipse 3.6 Helios - the bundle root (the folder that contains the META-INF/MANIFEST.MF file) of a plug-in project can be specified to be any location under the project's root folder. Until then the bundle root location was always equal to the project's root folder.
This setting is persisted in the <project-root>/.settings/org.eclipse.pde.core.prefs file. The preference key is BUNDLE_ROOT_PATH. Here is an example of its content:
#Tue Sep 28 18:27:21 EEST 2010
BUNDLE_ROOT_PATH=WebContent
eclipse.preferences.version=1
manifest.launchShortcuts=org.eclipse.pde.ui.EquinoxLaunchShortcut,org.eclipse.wst.server.launchShortcut
pluginProject.extensions=false
resolve.requirebundle=false
But, if I create such plugin (with bundle root different than the project's root), I can no longer build it with Maven/Tycho. My pom.xml is still in the project's root. I get the following message:
[WARNING] Exception reading bundle manifest: Could not find a META-INF/MANIFEST.MF, plugin.xml or a fragment.xml in ... [cut off]
[ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
This is because META-INF/MANIFEST.MF is no longer under the project's root, but under <project-root>/<bundle-root>/META-INF/MANIFEST.MF.
Is there any configuration for the tycho plugin that I can use for specifying the bundle root of a plugin project?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28165 seconds