logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Sicker (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-805) Dependency jboss-jms-api_1.1_spec should be optional
Date Thu, 28 Aug 2014 01:25:58 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Sicker resolved LOG4J2-805.
--------------------------------

    Resolution: Duplicate
      Assignee: Matt Sicker

Thanks for the fix. I'll follow up shortly.

> Dependency jboss-jms-api_1.1_spec should be optional
> ----------------------------------------------------
>
>                 Key: LOG4J2-805
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-805
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.2
>            Reporter: Florian Brunner
>            Assignee: Matt Sicker
>            Priority: Critical
>              Labels: easyfix, jms, maven, osgi
>
> Currently, the JMS dependency looks like this:
> {code}
>     <dependency>
>       <groupId>org.jboss.spec.javax.jms</groupId>
>       <artifactId>jboss-jms-api_1.1_spec</artifactId>
>       <scope>provided</scope>
>     </dependency>
> {code}
> but this generates in the Manifest an OSGi Import-Package entry without "resolution:=optional"
for the javax.jms package.
> OSGi then throws errors if there's no javax.jms available (which is not needed e.g. in
most rich clients), which confuses users: http://forum.drombler.org/general/thread/07ffc657
> To fix this, I think the dependency should look like this:
> {code}
>     <dependency>
>       <groupId>org.jboss.spec.javax.jms</groupId>
>       <artifactId>jboss-jms-api_1.1_spec</artifactId>
>       <scope>provided</scope>
>       <optional>true</optional>
>     </dependency>
> {code}
> Work-around:
> Explicitly add the dependency to your POM (even if you don't use JMS):
> {code}
>         <dependency>
>             <groupId>org.jboss.spec.javax.jms</groupId>
>             <artifactId>jboss-jms-api_1.1_spec</artifactId>
>             <version>1.0.1.Final</version>
>             <scope>runtime</scope>
>         </dependency> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message