[ 
https://issues.apache.org/jira/browse/CAMEL-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974873#action_12974873
 ] 

Claus Ibsen commented on CAMEL-3459:
------------------------------------

There is a Karaf feature for dozer, which is the way you should install and use 
dozer in osgi.

https://svn.apache.org/repos/asf/camel/trunk/platforms/karaf/features/src/main/resources/features.xml
{code:xml}
  <feature name='camel-dozer' version='${pom.version}'> 
    <feature version='${pom.version}'>camel-core</feature> 
    <bundle>mvn:org.ops4j.pax.web/pax-web-jsp/${pax.web.version}</bundle> 
    <bundle>mvn:net.sf.dozer/dozer-osgi/${dozer-bundle-version}</bundle> 
    <bundle>mvn:commons-lang/commons-lang/${commons-lang-version}</bundle> 
    
<bundle>mvn:commons-collections/commons-collections/${commons-collections-version}</bundle>
 
    
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/${xmlbeans-bundle-version}</bundle>
 
    
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/${commons-beanutils-bundle-version}</bundle>
 
    <bundle>mvn:org.apache.camel/camel-dozer/${pom.version}</bundle> 
  </feature> 
{code}

As you can see it uses the dozer-osgi bundle.

So we keep the pom.xml as usual for maven users.
And the features is for OSGi users.

> Change the dozer Artifact ID from dozer to dozer-osgi - Add camel-dozer to 
> the Jira component list
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3459
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3459
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>         Environment: All
>            Reporter: Michael Van Geertruy
>             Fix For: 2.6.0
>
>         Attachments: pom.xml
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Currently dozer releases two versions of its product, dozer (a non-bundled 
> .jar file) and dozer-osgi (an osgi bundle).  Supporting Camel's direction 
> moving to a tighter integration with OSGi, we should use dozer-osgi instead 
> of dozer.  To implement this, change line 44 of the camel-dozer pom.xml 
> document from 
>             <artifactId>dozer</artifactId>
> to
>             <artifactId>dozer-osgi</artifactId>
> This is related to ticket 3228 which is currently in a hold status. 
> Regardless of the changes made to dozer to make it work in OSGi, we will 
> still need to use the dozer-osgi bundle as long as the dozer project creates 
> a seperate bundle. As such, this change should be made prior to the dozer 
> release fixing thier ability to run in Camel.
> I have attached a patched pom.xml file that implements this change

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

Reply via email to