UIMA
  1. UIMA
  2. UIMA-1847

Eclipse plugins not working with more recent version of maven-bundle-plugin

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1SDK
    • Fix Version/s: 2.3.1SDK, 2.3.1AS
    • Component/s: Eclipse plugins
    • Labels:
      None

      Description

      With the newer version of maven-bundle-plugin (previous release used 1.4.0, current is 2.1.0, but the parent-pom-eclipse-plugins is using 2.0.1 which was the current version when that pom was made), the generated Manifest is more detailed. However it is broken - inside the generated MANIFEST.MF, he org.eclipse.core.runtime import is declared now with the additional clause registry=split.

      This affected several plugins, including in the core, the uimaj-ep-configurator, the uimaj-ep-debug, and uimaj-ep-jcasgen plugins.

      The result: the update site would build, and would install, however, when attempting to run the plugins, they would fail with class-not-found exceptions.

      The fix: it would work to go back to 1.4.0. But a better fix is to change the instructions to handle split packages better: Add the bundle org.eclipse.core.runtime to the Require-Bundle instructions, and add its negation, (!org.eclipse.core.runtime) to the Import-Package instruction, as required by OSGi.

      While there, check the other negations to insure they are correct. The Require-Bundle clause takes a bundle-id, which by convention only is often the package name.

        Activity

        Richard Eckart de Castilho made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Richard Eckart de Castilho added a comment -

        Setting to resolution state before reopening to change affects.

        Show
        Richard Eckart de Castilho added a comment - Setting to resolution state before reopening to change affects.
        Richard Eckart de Castilho made changes -
        Affects Version/s 2.3.1SDK [ 12315344 ]
        Affects Version/s 2.3.1 [ 12314751 ]
        Hide
        Richard Eckart de Castilho added a comment -

        Changing affects from 2.3.1 to 2.3.1SDK so version 2.3.1 can be removed.

        Show
        Richard Eckart de Castilho added a comment - Changing affects from 2.3.1 to 2.3.1SDK so version 2.3.1 can be removed.
        Richard Eckart de Castilho made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Hide
        Richard Eckart de Castilho added a comment -

        Reopening issue so it can be affected can be changed to a different version.

        Show
        Richard Eckart de Castilho added a comment - Reopening issue so it can be affected can be changed to a different version.
        Marshall Schor made changes -
        Fix Version/s 2.3.1AS [ 12315335 ]
        Fix Version/s 2.3.1SDK [ 12315344 ]
        Fix Version/s 2.3.1 [ 12314751 ]
        Marshall Schor made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Marshall Schor added a comment -

        changes also committed under UIMA-1846

        Show
        Marshall Schor added a comment - changes also committed under UIMA-1846
        Marshall Schor created issue -

          People

          • Assignee:
            Marshall Schor
            Reporter:
            Marshall Schor
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development