Here is a tip that saves a lot of time when developing web applications in Java. I find myself teaching this again and again every so often and so I decided to make it a blog port.
To build and deploy from maven I use the below maven snippet:
I have not tested this in Windows but probably with the help of cygwin or any other other *nix for windows ports you might be able to use it.
First be sure you have the target deployment directory configured as an environment variable.
You can use the below command to build and deploy in tomcat from one command:
You can use the below command just to deploy the webapp content of your web application. This means you just get changes in creatives or JSP files for example. Of course this accelerates your development (No new rebuild, no new redeployment, no session lost) BTW only new files will be copied.