Hi,
if you use mvn:projectDeploy my best solution would be to use the
ant-tasks. You can find the script in $servicemix_home/ant
there is also a readme with examples on how to use it. To undeploy use:
ant -f servicemix-ant-task.xml -Dsm.service.assembly.name=your-sa-name
-Dsm.username=smx -Dsm.password=smx shut-down-service-assembly
undeploy-service-assembly
Jakob
Bozo Juretic schrieb:
Dear servicemix users,
how do you redeploy an already deployed service unit to a servicemix (in
mi case 3.3)? I'm developing service units and need to redeploy them
very ofter, and for now, since there is no mvn jbi:projectUndeploy (or
something similar) I know of, in order to see the changes, I have to:
- shutdown standalone servicemix
- delete service assembly in servicemix/data/smx/service-assemblies by hand
- start servicemix
- move to my project main folder and do a mvn clean && mvn install &&
mvn jbi:projectDeploy
I'm sure I'm missing some nice feature or either mvn, eclipse plugin
(BTW link on http://servicemix.apache.org/eclipse-plugin.html is broken)
or something else which can be used conveniently for rapid redeployment
in the development phase.
So, how do you redeploy an deployed piece of code (service unit, shared
library etc.)? How do you hook up servicemix with eclipse (MyEclipse in
my case) so that it behaves well during development?
Thanks and best regards,
Bozo