UIMA
  1. UIMA
  2. UIMA-1846

Correct issues around building eclipse plugins and update site

    Details

      Description

      While trying to test a patch for code used in a plugin, I tried building an eclipse update site and installing it, and found several problems.

      1) Some "BND" bundle instructions for dealing with split packages accidently duplicated an "exclude". The newer release of the maven-bundle-plugin now treates these duplicates differently, causing an invalid Eclipse manifest to be generated, which is only discovered when you try to install from the update-site, and you get messages like:
      Eclipse: uimaj-ep-configurator: Descriptor Editor 2.3.1.SNAPSHOT (org.apache.uima.desceditor 2.3.1.SNAPSHOT) requires 'package !org.eclipse.jface.text 0.0.0' but it could not be found

      Note the "!" in front of the package name, which is caused by the duplicate exclude entry.

      2) The uimaj-ep-jcasgen plugin didn't specify the correct parent, so the maven bundle plugin wasn't properly configured.

      3) The uimaj-ep-runtime plugin was depending on the maven-bundle-plugin:bundle goal to embed the dependent Jars. However, this goal is turned off (by the common parent pom) and just the ordinary maven-jar-plugin is used.

      A fix to correct this by turning on the bundle goal, and turning off the jar goal, for just this project, showed up another error: the method of passing in the final build artifact name has a substitutable parameter for the version, which the maven-jar-plugin substitutes, but the maven-bundle-plugin doesn't.

      To work around this, don't use the "bundle" goal, go back to using the jar goal, adding a build step that uses maven-dependency-plugin:unpack-dependencies to create the embedding.

      4) the feature projects (e.g. uimaj-eclipse-feature-tools) specifies the incubator urls, update these to the new locations.

      5) the code in the update-site project put in to automatically copy the current plugins to the target needs to rename the jars from their maven names to the names that correspond to the eclipse plugin ids and follow Eclipse conventions

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        2d 4h 34m 1 Marshall Schor 06/Aug/10 19:26
        Closed Closed Reopened Reopened
        1027d 50m 1 Richard Eckart de Castilho 29/May/13 20:16
        Reopened Reopened Closed Closed
        6m 15s 1 Richard Eckart de Castilho 29/May/13 20:22
        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 -

        closing for uimaj base. uima-as still needs some work, but do that under another Jira.

        Show
        Marshall Schor added a comment - closing for uimaj base. uima-as still needs some work, but do that under another Jira.
        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