schema-export in Grails 3

215 views
Skip to first unread message

Ronny Løvtangen

unread,
Apr 21, 2015, 8:36:41 AM4/21/15
to grails-de...@googlegroups.com
schema-export is still present in the documentation (http://grails.github.io/grails-doc/3.0.x/ref/Command%20Line/schema-export.html) but the command 'grails schema-export' is not found in a new Grails 3.0.1 project. (Ran 'grails war' first since there is no 'grails refresh-dependencies' anymore) 
Has schema-export been removed?


$ grails schema-export

FAILURE: Build failed with an exception.

* What went wrong:
Task 'schemaExport' not found in root project 'uniqueconstr'.

* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.771 secs
| Error Error occurred running Grails CLI: Task 'schemaExport' not found in root project 'uniqueconstr'. (Use --stacktrace to see the full trace)


Best Regards,
Ronny Løvtangen

Jeff Scott Brown

unread,
Apr 21, 2015, 8:47:50 AM4/21/15
to grails-de...@googlegroups.com

> On Apr 21, 2015, at 6:06 PM, Ronny Løvtangen <ro...@lovtangen.com> wrote:
>
> schema-export is still present in the documentation (http://grails.github.io/grails-doc/3.0.x/ref/Command%20Line/schema-export.html) but the command 'grails schema-export' is not found in a new Grails 3.0.1 project.

Please file a bug report at https://github.com/grails/grails-core/issues and reference https://jira.grails.org/browse/GRAILS-12108 and https://github.com/grails/grails-data-mapping/commit/29a7eaedd2392c3975d3f29d88c16bf5e0887767#diff-1d10458816854f8e08f50c73f20f8c5e in the description.

Thanks for the feedback.



JSB

--
Jeff Scott Brown
je...@jeffandbetsy.net

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

Ronny Løvtangen

unread,
Apr 21, 2015, 9:14:20 AM4/21/15
to grails-de...@googlegroups.com

> On 21 Apr 2015, at 14:47, Jeff Scott Brown <je...@jeffandbetsy.net> wrote:
>
>
>> On Apr 21, 2015, at 6:06 PM, Ronny Løvtangen <ro...@lovtangen.com> wrote:
>>
>> schema-export is still present in the documentation (http://grails.github.io/grails-doc/3.0.x/ref/Command%20Line/schema-export.html) but the command 'grails schema-export' is not found in a new Grails 3.0.1 project.
>
> Please file a bug report at https://github.com/grails/grails-core/issues and reference https://jira.grails.org/browse/GRAILS-12108 and https://github.com/grails/grails-data-mapping/commit/29a7eaedd2392c3975d3f29d88c16bf5e0887767#diff-1d10458816854f8e08f50c73f20f8c5e in the description.
>
> Thanks for the feedback.
>

Thanks, Jeff.

https://github.com/grails/grails-core/issues/659

Ronny

Graeme Rocher

unread,
Apr 22, 2015, 3:08:22 AM4/22/15
to grails-de...@googlegroups.com
The hibernate plugin is not by default on the build classpath, you
need to add it to the build classpath to get the 'schema-export'
command working
> --
> 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 grails-dev-disc...@googlegroups.com.
> To post to this group, send email to grails-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/7F825820-45ED-46D1-AAAE-FE20E9515335%40lovtangen.com.
> For more options, visit https://groups.google.com/d/optout.



--
Graeme Rocher

Ronny Løvtangen

unread,
Apr 22, 2015, 3:35:17 AM4/22/15
to grails-de...@googlegroups.com
Thanks. Worked after adding

classpath "org.grails.plugins:hibernate:4.3.8.0"

to buildscript.dependencies.

This information should probably make it into the documentation.

Ronny
> To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAO_wNocubU%2BcQ3zHxdXrOshRkd69m8P9mPctW5N5ovVjb-RcDQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages