Hello,
I've been trying to deploy a SA using the jbi-maven-plugin
and ran into a few problems.
The first one was that I got a NameNotFoundException: jmxrmi.
Took me a while to figure out what this referes to. Looks like the
plugin tries to connect by default to:
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
That's different from the default path that ServiceMix has
configured wich would be:
service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
This is not mentioned in the documentation (as far as I can
tell) and I couldn't find a way to specify the jndiName for the maven
plugin either. So I ended up changing the path on the server so I
could connect to it.
Now I'm strugling with another issue: if I try mvn
jbi:projectDeploy it will throw an error saying servicemix-mail
already exists(even if I use the scope provided or compile). If I add
-DdeployDependencies=false then it will give me an error "No component
found with scheme: nmr" although I have nmr installed on the server.
So can anybody tell me how to do a deploy with maven? This
seems way more troublesome than it should be.
Sorin