------ Rapid Testing Using the Jetty6 Plugin ------ Pete Marvin King ------ 19 June 2006 ~~ Copyright 2006 The Apache Software Foundation. ~~ ~~ Licensed under the Apache License, Version 2.0 (the "License"); ~~ you may not use this file except in compliance with the License. ~~ You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, software ~~ distributed under the License is distributed on an "AS IS" BASIS, ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~~ See the License for the specific language governing permissions and ~~ limitations under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/guides/mini/guide-apt-format.html Rapid Testing Using the Jetty Plugin Normally, testing a web application involves compiling java sources, creating a war and deploying it to a web container. But using the jetty plugin enables you to quickly test your web application by skipping the last two steps. By default the jetty plugin scans your <<>> for any changes in your java sources and <<>> for your web sources. The jetty6 plugin will automatically reload the modified classes and web sources. To use the jetty plugin just add the following in your <<>>: +-----------------+ [...] org.mortbay.jetty maven-jetty-plugin 10 8080 60000 [...] [...] +-----------------+ then start Jetty: +-----------------+ mvn jetty:run +-----------------+ The command will block with Jetty listening on port 8080. Check the {{{http://jetty.mortbay.org/maven-plugin/index.html}jetty plugin documentation}} for more details.