You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/06/28 17:37:00 UTC

[jira] Commented: (CAMEL-644) org.osgi.core-1.0.1 should be optional i pom.xml

    [ https://issues.apache.org/activemq/browse/CAMEL-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43769#action_43769 ] 

Claus Ibsen commented on CAMEL-644:
-----------------------------------

Setting optional will remove the hard dependency on org.osgi.core at runtime - eg. for non OSGi envorionments such as packing a web application then this jar is not includeded in the WEB-INF\lib.

I assume that setting this to optional doesn't affect real osgi platforms where such a core osgi already exists in the OSGi container?

Any thoughts?

Proposed patch:
*before*
{code}
    <dependency>
      <!-- TODO: this is only needed for OSGi environments, can we have it be optional or how? -->
      <groupId>org.apache.felix</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>${felix-osgi-version}</version>
    </dependency>
{code}

*after*
{code}
    <dependency>
      <!-- this is only needed for OSGi environments, we can have it optional -->
      <groupId>org.apache.felix</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>${felix-osgi-version}</version>
      <optional>true</optional>
    </dependency>
{code}

> org.osgi.core-1.0.1 should be optional i pom.xml
> ------------------------------------------------
>
>                 Key: CAMEL-644
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-644
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Guillaume did some work on CAMEL-577[1], now camel-core could run without osig jar in the classpath.
> I think we can mark the org.osgi.core-1.0.1.jar to be an optional jar.
> Willem Jiang

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.