Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-577

Make some of the Import-Package declarations in logback-classic OSGi bundle optional

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.15
    • Fix Version/s: None
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      OSGi Service Platform Release 4

      Description

      It might be a good idea to mark some additional packages imported by logback-classis bundle as optional. Namely this applies to packages

      javax.servlet,
      javax.servlet.http,
      javax.management

      By importing package javax.servlet you are forcing the users to deploy Sevlet API bundle even in non-web application environment.

      The current <Import-Package> declaration in maven-bundle-plugin configuration:

      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      *
      </Import-Package>

      Suggested update:

      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      javax.servlet.*;resolution:=optional,
      javax.management;resolution:=optional,
      *
      </Import-Package>

      Feel free to close this as invalid if the above mentioned packages are always required for correct operation of logback-classic.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                logback-dev Logback dev list
                Reporter:
                pjuhos Pavol Juhos
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: