[logback-dev] [JIRA] Created: (LBCLASSIC-119) Missing Export-Package declarations in logback-classic OSGi bundle

Pavol Juhos (JIRA) noreply-jira at qos.ch
Tue Mar 24 19:40:10 CET 2009


Missing Export-Package declarations in logback-classic OSGi bundle
------------------------------------------------------------------

                 Key: LBCLASSIC-119
                 URL: http://jira.qos.ch/browse/LBCLASSIC-119
             Project: logback-classic
          Issue Type: Bug
          Components: Other
    Affects Versions: 0.9.15
         Environment: OSGi environment
            Reporter: Pavol Juhos
            Assignee: Logback dev list
            Priority: Critical


logback-classic OSGi bundle doesn't export logback implementation packages. These packages need to be imported by bundles implementing custom logback Appenders etc.

The problem is most likely caused a misconfiguration of maven-bundle-plugin in logback-classic POM. Current configuration:

          <instructions>
            <Export-Package>ch.qos.logback.classic.*</Export-Package>
            <Export-Package>org.slf4j.impl;version=1.5.6</Export-Package>
            <Import-Package>sun.reflect;resolution:=optional,
                            javax.jms;resolution:=optional, 
                            *
            </Import-Package>

            <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
          </instructions>

Suggested configuration:

          <instructions>
            <Export-Package>ch.qos.logback.classic.*,
                            org.slf4j.impl;version=1.5.6
            </Export-Package>
            <Import-Package>sun.reflect;resolution:=optional,
                            javax.jms;resolution:=optional, 
                            *
            </Import-Package>

            <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
          </instructions>

Second Export-Package declaration seems to override the first one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list