在Windows上配置grails时出现类路径错误

时间:2018-04-09 10:33:24

标签: grails

我想在我的Windows 10(x64)上安装grails。我的grails版本是3.3.4,groovy版本2.4.14,JVM版本1.8.0_141。我可以创建一个应用程序但是当我运行它时会出现错误:

FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'hello'.  
Could not resolve all dependencies for configuration ':classpath'.  
Could not resolve org.grails:grails-gradle-plugin:3.3.4.  
Required :  
project :
Could not resolve org.grails:grails-gradle-plugin:3.3.4.  
Could not get resource 'https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.4/grails-gradle-plugin-3.3.4.pom'.  
Could not GET 'https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.4/grails-gradle-plugin-3.3.4.pom'.  
Connect to repo.grails.org:443 [repo.grails.org/198.18.1.217] failed: Connection timed out: connect  
Could not resolve org.grails.plugins:hibernate5:6.1.9.  
Required by:  
project :  
Could not resolve org.grails.plugins:hibernate5:6.1.9.  
Could not get resource  
'https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/6.1.9/hibernate5-6.1.9.pom'.  
Could not GET  'https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/6.1.9/hibernate5-6.1.9.pom'.  
Connect to repo.grails.org:443 [repo.grails.org/198.18.1.217] failed: Connection timed out: connect  

Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

CONFIGURE FAILED

Total time: 1 mins 4.547 secs
Error Error initializing classpath: Connection timed out: connect (Use --stacktrace to see the full trace)

我到处搜索但没有找到解决方案。请帮我解决这个问题。

PS:每当我尝试运行应用程序时,奇怪的是网络变得难以置信地慢了。

0 个答案:

没有答案