From b0904247de479c6e4c927cbc36aa390cee69d9e3 Mon Sep 17 00:00:00 2001 From: Miguel Reboiro-Jato Date: Tue, 7 Feb 2017 22:57:30 +0100 Subject: [PATCH] Adds automatic deployment capabilities to Tomcat execution The run-tomcat-mysql allows the execution of the project in a Tomcat 8 server with a MySQL database through the "cargo:run" or "cargo:start" goals. This commit adds the fizzed-watcher-maven-plugin to provide the project with automatic redeployment when using the aforementioned profile. For example, executing the Maven command the application will be served in a Tomcat server an automatically redeployed when any file changes: mvn -DskipTest=true -Prun-tomcat-mysql cargo:start fizzed-watcher:run --- pom.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pom.xml b/pom.xml index 6c3db25..09e95fc 100644 --- a/pom.xml +++ b/pom.xml @@ -55,6 +55,7 @@ 1.6.2 1.0.0 1.8 + 1.0.6 @@ -506,6 +507,24 @@ + + com.fizzed + fizzed-watcher-maven-plugin + ${fizzed-watcher-maven-plugin.version} + + true + + + src/main + + + + package + cargo:redeploy + + + + org.codehaus.cargo cargo-maven2-plugin -- 2.18.1