Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-498

OSGI MANIFEST.MF "Import-Package" should be ";resolution:=optional" for Maven "optional" dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None

    Description

      In the Maven "pom.xml" there are several "optional" dependencies like "jsch":

      <dependency>
      <groupId>com.jcraft</groupId>
      <artifactId>jsch</artifactId>
      <optional>true</optional>
      </dependency>

      In the "Import-Package" section of the MANIFEST.MF it should also be "optional" like this:

      com.jcraft.jsch;resolution:=optional,

      At the moment all dependencies are always required. This is a problem if you want to use VFS in an OSGI environment as you have to install ALL dependencies and not only the ones you really need.

      The mechanism creating the MANIFEST should be adjusted to reflect the optional dependencies also in the MANIFEST. (Unfortunatelly this could mean to list all packages which should be optional).

      Attachments

        Issue Links

          Activity

            People

              b.eckenfels Bernd Eckenfels
              michael-schnell Michael Schnell
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified