Updating some of our older grails 2 plugins to grails 3 I noticed that schema-export no longer works in the plugin context.
Problem
If you create a plugin that defines domain objects using gorm hibernate5:6.1.12 calling grails run-command schema-export
fails with Command execution error: org.hibernate.tool.hbm2ddl.SchemaExport: method <init>()V not found
If you create an app and try grails schema-export
, it works as expected.
If you use the plugin in an application, grails schema-export
also works as expected.
It doesn't matter if you have a different database, I have tried with postgresql too.
Test project with readme: https://github.com/pmcneil/testg3plugin
Use case for schema-export in a plugin: existing grails 2 plugin https://github.com/bio-org-au/nsl-domain-plugin uses schema-export to build an executable schema to set up new shard databases and create upgrade scripts.
I have created an issue on GitHub here https://github.com/grails/gorm-hibernate5/issues/137
Cheers,
Peter.
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grails-dev-discuss/1d5765a7-1c6e-48ac-a6c6-639b2e846101%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.