Hi Hervé,

You can add:
- the jar in pom dependencies
- update the shade include and filter artifact

Like this the jars will be shipped in the ehcache generated bundle.

Regards
JB

On 05/09/2012 02:37 PM, Hervé BARRAULT wrote:
Hi,

Servicemix provides a package for ehcache.

Here is the maven dependency.

<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.ehcache</artifactId>
<version>2.5.1_1</version>

In my case, i would use ehcache with a terracotta back-end.
In this case this package is not enough and i should add the dependencies
for terracotta-toolkit.


But in this case the jars which i want to transform as a bundle contain
jars.

How can i handle these included jars ?

I have seen the embed dependencies tag, but I have some difficulties to use
them [it seems not for my case].

terracotta-toolkit-1.4-runtime-4.1.0.jar
+-L1/terracotta-l1-3.6.1.jar
+-L1/tim-api-1.3.0.jar
...

With this jar, all the content is well embedded (even L1 directory with
jars). But dependencies are not resolved correctly [it does not see classes
inside included jars].
In order to ease the wrapping, I use as a parent pom :
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>bundles-pom</artifactId>
<version>8</version>


Thanks for answers
Regards
Hervé


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to