From 2a85cb05542795f9cd2eed448f212f92842a85e8 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 13 May 2015 09:44:18 +0200 Subject: [PATCH] Found no way to check, that mapped classes were found --- .../de/juplo/plugins/hibernate4/Hbm2DdlMojo.java | 14 -------------- 1 file changed, 14 deletions(-) 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!"); -- 2.20.1