divinespear / jpa-schema-maven-plugin

Maven plugin for generate database schema or DDL scripts from JPA entities
http://divinespear.github.io/jpa-schema-maven-plugin
Apache License 2.0
21 stars 19 forks source link

JavaEE #21

Closed madoar closed 7 years ago

madoar commented 8 years ago

Hi, I want to use the jpa-schema-maven-plugin to create a sql file containing the database schema of an javaee application with jboss/wildfly dependencies. In my case this means that all dependencies have a provided scope and hibernate isn't added to the pom file because it gets automatically provided by the wildfly application server. When I try to use the jpa-schema-maven-plugin plugin with this setup I get a lot of NoClassDefFoundError exceptions, because implementations for the used libraries in my database project are not available at compile-time, they are only available at runtime in the application server. I've tried to add the hibernate to the dependencies environment inside the plugin definition environment, but it seems like it gets ignored by the plugin.

Is there an easy way to use this plugin in with javaee applications that don't have the implementations of some libraries at compile time? Otherwise is it possible to extend this plugin that it's possible to provide the needed implementation dependencies in the dependencies environment inside the plugin definition environment?

Many Greetings madoar

divinespear commented 7 years ago

It's too late, but I think it fixed with 0.2.1. Please test it.