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

前端 未结 6 1177
半阙折子戏
半阙折子戏 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:50

    It worked for me now. this was my setting

    GRAILS_HOME=C:\Users\murali.solayappan\apps\grails-3.1.11

    JAVA_HOME=C:\Program Files\Java\jdk1.8.0_102

    I received the same error while launching "grails" for the first time

    **Error occurred running Grails CLI: connect timed out**
    

    After reading GRAILS_HOME\bin\grails.bat i found that executing "grails" while in GRAILS_HOME dir makes some difference. So I did the same

    Now i received error stating that GRAILS couldn't find a particular maven package from my mirror repository - printed my private nexus repository url. I know that's my private repo and not connected to internet.

    so I changed the MY_HOME_DIR.m2\"settings.xml" with the one came by default in Maven.

    After that executed "grails" while in %GRAILS_HOME% dir.

    It worked like breeze !!! I got grails prompt.

    C:\Users\murali.solayappan\apps>grails

    | Enter a command name to run. Use TAB for completion:

    grails> exit

提交回复
热议问题