“Error occurred running Grails CLI: null” when running grails 3.0 command line

前端 未结 6 1161
半阙折子戏
半阙折子戏 2020-12-11 03:35

I\'m trying to run grails list-profiles, but receive the following error:

snowch@snowch-ws2:~/repos$ grails list-profiles --stacktrace
| Error E         


        
6条回答
  •  抹茶落季
    2020-12-11 03:57

    I have not figured out, what is the exact cause of the error, but it seems to occur if you try to run grails 3 in the system where grails 2 is also installed.

    What I did to get the command run - I created the project in a new directory. The directory for my old grails app was: /home/me/projects/oldgrailsapp

    when I tried to execute the grails command in /home/me/projects it failed, but when I tried this in another directory /home/me/projects_new, it succeeded. So I guess that the problem was that old grails configuration was somehow interfering with the new one.

    I also removed references to old grails and groovy versions from the PATH variable by editing .bashrc file in my home directory (I really do not know if it was needed).

提交回复
热议问题