zDev - Tycho - OSS
  1. zDev - Tycho - OSS
  2. TYCHO-500

Cannot build eclipse-plugin with bundle root different than the project root

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Out of scope
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Global Rank:
      11733

      Description

      Reporting this issue is follow-up of a topic in the Eclipse Tycho forum:
      http://www.eclipse.org/forums/index.php?t=msg&th=197454

      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.

      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.

        Activity

        Hide
        Igor Fedorenko added a comment -

        There are no immediate plans to support custom project layouts. I may change my mind if a quality patch is provided.

        Show
        Igor Fedorenko added a comment - There are no immediate plans to support custom project layouts. I may change my mind if a quality patch is provided.

          People

          • Assignee:
            Igor Fedorenko
            Reporter:
            Kaloyan Raev
            Last Updated By:
            Brian Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: