Passing arguments to grails:run-app

Since this is not documented anywhere I might as well document how to pass arguments to the Maven goal grails:run-app here. Just prefix the argument name with -Dgrails.. The equivalent Maven goall to grails prod run-app would then be mvn grails:run-app -Dgrails.env=prod. You can get the list off available parameters by executing mvn grails:help

1 Responses to Passing arguments to grails:run-app

  1. Carl-Erik sier:

    As a little note: the grails plugin for Maven is not without its flaws! The exact same configuration yields an error with the Oracle DB driver when using the maven goal. Just a warning.

Legg igjen en kommentar