Deploying Web Projects Locally
Maven can deploy web applications locally by using plugins.
First of all define a property for the deployment context:
This will be used to deploy the project into the http://localhost:8080/webproject/ URL.
Jetty
When using the Jetty plugin with Maven use this configuration:
Afterwards it can be run with:
Tomcat
When using the Tomcat plugin with Maven use this configuration:
Afterwards it can be run with:
Last updated