Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0-beta-1, 2.0
-
None
-
None
Description
Best to add the "redeploy" goal to the tomcat7 plugin, to eliminate the need for the user to have to remember/google the "-Dmaven.tomcat.update=true" string or have to inefficiently call mvn tomcat7:undeploy and mvn tomcat7:deploy sequentially. mvn tomcat:redeploy generally gets much more use during testing/debugging/development than mvn tomcat:deploy, and also acts like mvn tomcat:deploy if the WAR isn't there anyway.
This would also benefit archetype/tutorial writers by no longer requiring them to hardcode the <update>true</update> configuration setting in the pom.xml for the deploy goal at a risk of overriding a potential safety mechanism of having tomcat7:deploy fail if the WAR is already there.