From 9f8cf27610631ba445d28fe9efd77afe5b524453 Mon Sep 17 00:00:00 2001 From: Fernando Bellas Permuy Date: Wed, 1 Jul 2009 15:52:39 +0200 Subject: [PATCH] ItEr15S04ArquitecturaServidorItEr14S04 Update to Maven Jetty plugin 6.1.18. The Maven Jetty plugin has been updated to version 6.1.18. Apart from being a more stable version that the previous one (6.1.12.rc2), it adds the configuracion option (available from version 6.1.18 onwards). In particular, the plugin has been configured with manual. This way Jetty does not scan for changes to project files. Instead, it is necessary to hit "ENTER" key on the Jetty console whenever we want Jetty to reload the application. Manual reloading has a number of advantages over automatic reloading: + ZK can manage by itself the reloading of .zul pages (without intervertion of Jetty). + Whenever a developer creates/modifies "n" non ZK-managed files (e.g. .java files) to develop/fix a feature, she/he hits RETURN (after all modifications are done) to verify the changes, causing Jetty to reload the application only once (instead of "n" times when using automatic reloading). Minimizing the number of times Jetty reloads the application is important, since class loaders do not release memory properly after reloading (in consequence, after a number of reloads, Jetty must be restarted; as usual, JVM memory options can also be used to increase available memory if desired). --- pom.xml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index 88b784242..cced15b95 100644 --- a/pom.xml +++ b/pom.xml @@ -435,19 +435,10 @@ org.mortbay.jetty maven-jetty-plugin - - 6.1.12.rc2 + 6.1.18 target/jetty/jetty-env.xml - 5 - - - src/main/webapp/WEB-INF - - * - - - + manual @@ -459,9 +450,11 @@ true