From: Kai Moritz Date: Wed, 13 May 2015 07:44:18 +0000 (+0200) Subject: Found no way to check, that mapped classes were found X-Git-Tag: hibernate4-maven-plugin-1.1.0~7 X-Git-Url: https://juplo.de/gitweb/?p=hibernate4-maven-plugin;a=commitdiff_plain;h=2a85cb05542795f9cd2eed448f212f92842a85e8;ds=sidebyside Found no way to check, that mapped classes were found --- diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index aebf02e5..f1b6a2cd 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -844,20 +844,6 @@ public class Hbm2DdlMojo extends AbstractMojo } - Iterator it = config.getClassMappings(); - if (!it.hasNext()) - { - throw new MojoFailureException("No mapped classes found!"); - } - else - { - getLog().info("Mapped classes:"); - while (it.hasNext()) - { - getLog().debug(" " + it.next().getClassName()); - } - } - if (config.getProperty(DIALECT) == null) throw new MojoFailureException("hibernate-dialect must be set!");