Resolution: Out of scope
Affects Version/s: None
Fix Version/s: None
Reporting this issue is follow-up of a topic in the Eclipse Tycho forum:
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
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.
My concrete use case is that I want to represent a Dynamic Web Project (this is Eclipse Web Tools Platform terminology) as a Web Application Bundle project. A WTP's Dynamic Web project has all deployable content in the <project-root>/WebContent folder and the latter is the best place for the bundle root too.