Grails 2.3.5 generate-all does not exist, but in the documentation

Should it work or has it been deleted?

Here are the commands that are not executed:

grails create-app my_new_app cd my_new_app grails generate-all my_new_app.Book 

Results in

 Script 'GenerateAll' not found, did you mean:.5 1) CreateFilters 2) CreateController 3) CreateIntegrationTest 4) InstallTemplates 5) CreateApp_ > Please make a selection or enter Q to quit: 

This is according to the documentation at http://grails.org/doc/latest/guide/gettingStarted.html#generatingAnApplication

 grails -version Grails version: 2.3.5 
+7
grails
source share
3 answers

You need to run

 grails compile 

Prior to generate-all , since the forests are now in the plugin

+16
source share

Use the following commands

 grails create-app my_new_app cd my_new_app grails refresh-dependencies grails create-domain-class book grails generate-all my_new_app.Book 

It worked for me. I got an idea from the Grails forum: http://grails.1312388.n4.nabble.com/Generate-scripts-missing-from-grails-2-3-3-td4651739.html

+5
source share

The scaffold feature was pulled out of the kernel in Grails 2.3. *. Add the scaffolding plugin to BuildConfig.groovy to restore the functionality of creating all and static forests.

compile ": scaffolding: 2.0.0"

+3
source share

All Articles