Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making WAR file in Grails

I used the war command in Grails for making war file, but I got the error:

Error Exception occurred trigger event [CreateWarStart]: C:\Users\MultiSite\grails-app\migrations does not exist.

The application is working pretty good under run-app command.

can anyone help me how to figure it out?

Thanks

like image 300
Reza Avatar asked Aug 28 '12 20:08

Reza


People also ask

How do you create a project in grails?

Go to start.grails.org and use the Grails Application Forge to generate your Grails project. You can choose your project type (Application or Plugin), pick a version of Grails, and choose a Profile - then click "Generate Project" to download a ZIP file. No Grails installation necessary!

Does grails use gradle?

Grails 3.1 uses the Gradle Build System for build related tasks such as compilation, runnings tests and producing binary distributions of your project.

How do I use grails app in IntelliJ?

Support for the Grails framework is not bundled with IntelliJ IDEA. You can install the Grails plugin from the JetBrains repository as described in Install plugins. The latest compatible version of IntelliJ IDEA is 2021.3. You can find the documentation for Grails support in earlier versions of IntelliJ IDEA Help.


1 Answers

If you are using the Database Migration Plugin then you should have, by default, a migrations directory. Grails 2.x install Database Migration Plugin out the box. You can remove it from BuildConfig.groovy or you can to create migrations directory.

like image 162
AA. Avatar answered Nov 15 '22 11:11

AA.