OK, first read the Maven documentation to understand Maven.
Then, what do you want to do; do you want to package it as service units in
a servcie assembly to deploy it? If that's what you want to do, I assume
you're going to use the lwcontainer as your components aren't JBI components
but light-weight components. Right? If so, have a look at the bridge
example. There the bridge-xslt-su is a lightweight component utilizing the
lwcontainer. You can have a look in that example how dependencies are
configured. The actual configuration in the servicemix.xml that will go in
the SU you need to copy from the servicemix.xml that you have running now
(the servicemix.xml that smx is started with shouldn't include anything
about your components as those are configured by the service.xml in your
SUs).


duzhv wrote:
> 
> Hi,
> 
> I created a very simple component to listen the QuartzComponent. I
> compiled it with my IDE, packaged in jar, put into
> [apache-servicemix-3.0-incubating]\lib and run servicemix with
> servicemix.xml file. It works.
> 
> Now I need to package my class with maven2. I don't know how to configure
> dependencies there. Could anybody help me with it?
> 
> P.S.
> Here is the code of the component: 
> 
> import org.apache.servicemix.components.util.DefaultFileMarshaler;
> import org.apache.servicemix.components.util.FileMarshaler;
> import org.apache.servicemix.components.util.OutBinding;
> 
> import javax.jbi.JBIException;
> import javax.jbi.messaging.MessageExchange;
> import javax.jbi.messaging.NormalizedMessage;
> 
> public class QuartzListener extends OutBinding {
> 
>     protected void process(MessageExchange exchange, NormalizedMessage
> message) throws Exception {
>         System.out.println("QuartzListener is working...");
>         done(exchange);
>     }
> }
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unable-compile-a-component-with-maven-tf2430559.html#a6790534
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to