Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2289

Incorrect OSGI manifest generated for the modeshape-jcr artifact

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.x-prod-ip6.0, 3.8.0.Final, 4.0.0.Beta1
    • None
    • None

    Description

      The ModeShape build system uses the org.apache.felix:maven-bundle-plugin to generate OSGI-compliant MANIFEST.MF files for all of its artifacts.

      At the moment the org.modeshape.common.util package appears as exported (manifest Export-Package) from 2 different artifacts: modeshape-common and modeshape-jcr which causes an OSGI container to crash with exception messages like:

      > Error executing command: Could not start bundle mvn:org.modeshape/modeshape-jcr/3.8.1.GA-redhat-1 in feature(s) : Uses constraint violation. Unable to resolve bundle revision org.modeshape.jcr [551.0] because it exports package 'org.modeshape.common.util' and is also exposed to it from bundle revision org.modeshape.common [550.0] via the following dependency chain:
      > 
      >   org.modeshape.jcr [551.0]
      >     import: (&(osgi.wiring.package=org.modeshape.common)(version>=3.8.0)(!(version>=4.0.0)))
      >      |
      >     export: osgi.wiring.package=org.modeshape.common; uses:=org.modeshape.common.util
      >     export: osgi.wiring.package=org.modeshape.common.util
      >   org.modeshape.common [550.0]
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            hchiorean Horia Chiorean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: