Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see the ful

我的环境:

| Grails Version: 3.1.4
| Groovy Version: 2.4.6
| JVM Version: 1.7.0_80
C:\Users\Administrator>

----------------------------------------------------------------------

错误信息:

D:\Projects\Grails\XXX>grails
| Error Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see the full trace)


-------------------------------------------------------------------------------------------------------------------------------------------------------------

错误原因:

1、我重装系统后,就出现了以上错误。java、grails、gradle我没有重装,只是把它们的路径重新加到了环境变量中。

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

解决方法:

1、删除(或重命名)工程目录下面的bulid目录,然后在工程目录中像往常一样直接执行grails命令即可,这样grails就会重新解析依赖和重新build了。

D:\Projects\Grails\XXX>grails
> Configuring > 0/1 projects > root project > Resolving dependencies ':classpath
1/1 projects > Resolving dependencies ':agent' > Resolving dependencies 'detache
 > Resolving dependencies ':runtime' > Resolving dependencies 'detachedConfigura
Download http://repo.grails.org/grails/core/mysql/mysql-connector-java/5.1.38/my
sql-connector-java-5.1.38.jar
> Configuring > 1/1 projects > Resolving dependencies ':console' > Resolving dep


BUILD SUCCESSFUL


Total time: 3 mins 22.394 secs
> Resolving dependencies ':testRuntime' > Resolving dependencies 'detachedConfig
| Enter a command name to run. Use TAB for completion:

你可能感兴趣的:(groovy,web,profile,grails,java)