When deploying a war on tomcat 7, it's very useful to configure the <context> parameter, as it is not allowed within META-INF/context.xml war file.
Everything works fine if I'm using a "simple" context like <context>myappli</context>.
But, if I want to add a version number to my context using tomcat's special feature (like <context>myappli##1.0-SNAPSHOT</context>), deployment succeed the first time but fails on subsequent tries with this error :
ERROR Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.3.2:deployer-redeploy (verify-deploy) on project myappli-war: Execution verify-deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.3.2:deployer-redeploy failed: Failed to deploy E:\myappli\myappli-war\target\myappli-war-1.0.0-SNAPSHOT.war: FAIL - application already exists at path /myappli##1.0.0-SNAPSHOT -> Help 1
My cargo configuration :