javaspringmavenspring-mvcspring-roo

Command 'web mvc all --package ~.web' not found


Trying to run command

web mvc all --package ~.web

from pizza shop example But i get error

Command 'web mvc all --package ~.web' not found (for assistance press TAB or type "hint" then hit ENTER)

Searching 'web mvc all' on installed repositories 0 matches found with 'web mvc all' on installed repositories

I am using: maven 3.3.9 roo 2.0.0.M2

How do I solve this


Solution

  • Remember that Spring Roo 2.0.0.M2 is just a milestone and maybe some examples are deprecated or they have not been updated.

    Controller commands have been updated on 2.0.0.M2 version, so maybe some parameters are not available.

    For example, the web mvc all command you commented above has been updated to web mvc controller --all.

    Also, you could use TAB or CTRL + Space to autocomplete the available commands with the available parameters.

    Regards,