Hi,
Have you tried the following
<dependency>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>servicemix-jsr181</artifactId>
<version>xxx</version>
<scope>provided</scope>
</dependency>
In this case, the code will compile but the dependency jars will not be
added to the service unit.
So long as the components are deployed via the deploy/hotdeploy directory
before your SU is picked up, my sense is that everything should work.
Cheers,
Ashwin...
Grzegorz Kokosiński wrote:
>
> Hi,
>
> I want to write a service unit which will have two dependencies. First
> is a normal jbi component like servicemix-jsr181, and the second is a
> jbi shared library like servicemix-shared (I want to using it at least
> in two different service units).
>
> I added these two components into pom as a normal maven dependency. And
> it works only for servicemix-jsr181, but it seems to not work with my
> shared library.
>
> When I deploy it on servicemix on which component servicemix-jsr181 is
> not installed then deployment is suspended, but when I deploy it when
> just my shared library is not installed then deployment is not
> suspended and consequently deployment fails.
>
> Im using servicemix 3.3.
>
> Thanks in advance.
>
> Grzesiek Kokosiński
>
>
-----
---
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
---
+1-972-304-9084 (Office)
+1-972-971-1700 (Mobile)
----
Blog: http://opensourceknowledge.blogspot.com/
--
View this message in context:
http://www.nabble.com/Service-unit-which-depends-on-jbi-component-and-shared-library----tp21329789p21330219.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.