From: Kai Moritz Date: Sat, 20 Oct 2012 13:55:30 +0000 (+0200) Subject: Attribute "skip" is no initialized with value of property maven.test.skip X-Git-Tag: hibernate4-maven-plugin-1.0~13 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ac115c7ce3e54e38cee8792addfd2b4ae38010d7;p=hibernate-maven-plugin 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. --- 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;