
Apache Maven Cookbook
By :

When developing web applications, it is good to have a quick way to check if the application deploys successfully without errors. IDEs allow users to hot-deploy applications. Maven provides a mechanism to quickly run the project using Jetty. Jetty is a popular open source application server that can be used to deploy web projects. The Maven Jetty plugin allows applications to be deployed to Jetty and runs them as part of the Maven build process.
simple-web-project
).mvn org.eclipse.jetty:jetty-maven-plugin:run
http://localhost:8080
.The Maven Jetty plugin allows web applications to be deployed and tested using Jetty. The run
goal is bound to the package
phase. Maven runs all the phases prior to it. Jetty deploys the webapp from its sources; the webapp does not have to be built into a WAR. It looks...