Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-285

slf4j-api-1.7.2-tests.jar and slf4j-api-1.7.2.jar use same Bundle-SymbolicName in MANIFEST.MF

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.7.x
    • Core API
    • None
    • Operating System: All
      Platform: PC

    Description

      since both jars use the same bundle Id it can come to clashes when both are used in osgi environments.

      We are using sonar nexus repository server with p2 plugin which generates p2 metadata from all jar files that contain a valid osgi'fied MANIFEST.MF file.

      So we can import thirdparty libraries to an eclipse target platform with a .target file like that:
      <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
      <unit id="slf4j.api" version="1.7.2"/>
      <repository location="http://build.godyo.int:8081/nexus/content/repositories/central/.meta/p2/"/>
      </location>

      The odd thing was that we got MD5 errors when setting the target platform, but only on some machines.

      In the end it showed that the nexus server hat the slf4j.api and it corresponding test jar. Both with the same Bundle Id and so something got mixed up.

      the test jar should have a Bundle Id like slf4g.api.test

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            peter.hermsdorf@godyo.com peter.hermsdorf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: