Search code examples
javamaventomcat7tomcat7-maven-plugin

mvn tomcat7:deploy not work if no restart tomcat


I'm trying to deploy a war on tomcat via maven (mvn clean install tomcat7:deploy). The deployment seems to work fine, but the application only works if I restart tomcat. It is normal? I think not.


Solution

  • tomcat7:deploy only responsible to put the updated WAR file to Tomcat:

    Deploy a WAR to Tomcat.

    To use Tomcat hot deploy when war file changes, see answers