我在克隆的Grails应用程序位于本地的存储库中。我运行此命令运行,它说:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'bootRun' not found in root project 'vagnkort'.
* 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.
当我写ls时,我的列表是:
README.md build grails-app grailsw.bat web-app
application.properties docs grailsw src wrapper
答案 0 :(得分:5)
确实,解决方案是我必须运行相关版本的grails。就我而言,我必须安装2.5.0版本(当然这取决于应用程序的构建):
gvm install grails 2.5.0
然后切换到该版本:
gvm use grails 2.5.0
每次启动终端时,您可能必须切换到该版本(构建应用程序)。
答案 1 :(得分:4)
尝试运行" grails clean"清理所有内容然后" grails run-app"