Error Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see
来源:互联网 发布:淘宝卖家虚拟电话 编辑:程序博客网 时间:2024/06/03 16:06
我的环境:
| 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:
grails>
- Error Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see
- Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see the ful
- | Error Error occurred running Grails CLI: Profile [org.grails.profiles:base:3.1 .3] declares and in
- Error Error initializing classpath: Connection timed out: connect (Use --stacktrace to see the full
- Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full )
- ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see
- an error has occurred.See error log for more details
- an error has occurred.See error log for more details
- An error has occurred. See error log for more details.
- An error has occurred.See error log for more details.
- an error has occurred.See error log for more details
- error running app no target device found
- Error retrieving parent for item: No resource found that matches the given name after upgrading to A
- configure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCo
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Them
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'AppCompat'
- main()命令行参数在cmd下输入
- GitHub
- json接受服务器数据实现下拉框样式
- 操作系统面试题总结
- java中输入一个字符串,怎么将字母去掉
- Error Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see
- linux问题汇总
- android Uid 与 Pid 的区别与用法
- DP 杭电女生赛07题 Combine String
- ptrace基于行数调试
- 在Python标准库的json包中,提供了JSONEncoder和JSONDecoder两个类来实现Json字符串和dict类型数据的互相转换。
- AXIS2发布WebService服务示例(Eclipse+AXIS)
- 操作系统面试题
- 智能指针的两种实现(引用计数)