I am using tomcat7-maven-plugin
in my Java web application. Now I can run my web server using command mvn clean tomcat7:run
. Recently I notice that there is another command called tomcat7:run-war
from http://ift.tt/2rrHOFQ, which says:
tomcat7:run:
Runs the current project as a dynamic web application using an embedded Tomcat server.tomcat7:run-war:
Runs the current project as a packaged web application using an embedded Tomcat server.
I know the command tomcat7:run-war
will package my application to a jar
or war
file and then run it inside an embedded server. My question is that under what circumstances should we use this command, isn't tomcat7:run
enough? Or maybe running a packaged application will have higher performance? I am not sure. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire