I am trying to connect the Cargo plugin to my maven project to benefit from a hot war deployment aimed at the Jonas server.
The official documentation is not entirely clear for what is supported and what is not (for example, you can find this: http://cargo.codehaus.org/Hot+Deployment , but also this http://cargo.codehaus.org/JOnAS + 4.x ).
Anyway, I have the following alignment for my military POM:
<plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0</version> <configuration> <container> <containerId>jonas4x</containerId> <home>C:\JOnAS-4.8.4\nt\bin</home> </container> <configuration> <type>existing</type> <home>C:\JOnAS-4.8.4</home> </configuration> </configuration> </plugin>
And when I run
mvn cargo:deploy
in my project, the war is copied to the Jonas webapps folder, but there is no hot deployment. The file is copied only, but the Jonas hot command is not called, so my modifications are not available right away.
EDIT: I also tried adding the deployment configuration as suggested in the answers, but the behavior is the same (i.e. the war is copied, but the Jonas hot deploy command is not called so that the war does not restart in Jonas).
Am I missing something or am I saying correctly that the Cargo Maven plugin does not support Jonas Hot Deployement?
Thanks in advance!
source share