diff --git a/src/main/java/io/github/divinespear/maven/plugin/JpaSchemaGeneratorMojo.java b/src/main/java/io/github/divinespear/maven/plugin/JpaSchemaGeneratorMojo.java index ae2edc4..c87b430 100644 --- a/src/main/java/io/github/divinespear/maven/plugin/JpaSchemaGeneratorMojo.java +++ b/src/main/java/io/github/divinespear/maven/plugin/JpaSchemaGeneratorMojo.java @@ -508,7 +508,7 @@ private ClassLoader getProjectClassLoader() throws MojoExecutionException { private void generate() throws Exception { Map map = JpaSchemaGeneratorUtils.buildProperties(this); - if (getVendor() == null) { + if (getVendor() != null) { // with persistence.xml Persistence.generateSchema(this.persistenceUnitName, map); } else {