From ac115c7ce3e54e38cee8792addfd2b4ae38010d7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 20 Oct 2012 15:55:30 +0200 Subject: [PATCH] Attribute "skip" is no initialized with value of property maven.test.skip If one runs hibernate4:export with the switch "-Dmaven.test.skip=true", the configured database was droped, although the execution of the tests was skipped. This might lead to serious data-loss, if one builds a project on the production-machine. Hence, the excecution of hibernate4:export is aborted now, if maven.test.skip is true. --- src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index f2fd2320..9fe34880 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -77,7 +77,7 @@ public class Hbm2DdlMojo extends AbstractMojo /** * Skip execution * - * @parameter default-value="false" + * @parameter expression="${maven.test.skip}" */ private boolean skip; -- 2.20.1