我正在使用带有 GGTS ide 的 grails-2.0.4 版本。当我尝试安装 mongodb 时发生了一些错误。我尝试了两种方式。
**1)compile ":mongodb:1.0.0.GA"**
然后它得到这个错误:
| 加载 Grails 2.0.4 | 配置类路径 :: 问题摘要 :: :::: ERRORS 服务器访问错误:连接超时:连接 url=http://plugins.grails.org/grails-mongodb/tags/RELEASE_1_0_0_GA/mongodb-1.0.0.GA。绒球
Server access Error: Connection timed out: connect url=http://plugins.grails.org/grails-mongodb/tags/RELEASE_1_0_0_GA/grails-mongodb-1.0.0.GA.jar
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/plugins//mongodb/1.0.0.GA/mongodb-1.0.0.GA.pom
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/plugins//mongodb/1.0.0.GA/mongodb-1.0.0.GA.jar
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/core//mongodb/1.0.0.GA/mongodb-1.0.0.GA.pom
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/core//mongodb/1.0.0.GA/mongodb-1.0.0.GA.jar
Server access Error: Connection timed out: connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-mongodb/tags/RELEASE_1_0_0_GA/mongodb-1.0.0.GA.pom
Server access Error: Connection timed out: connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-mongodb/tags/RELEASE_1_0_0_GA/grails-mongodb-1.0.0.GA.jar
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2//mongodb/1.0.0.GA/mongodb-1.0.0.GA.pom
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2//mongodb/1.0.0.GA/mongodb-1.0.0.GA.jar
| 错误无法解决依赖关系(在 BuildConfig.groovy 中将日志级别设置为“警告”以获取更多信息):
:mongodb:1.0.0.GA
**2) grails install-plugin C:\Documents and Settings\marao18\Desktop\gorm-mongodb-0.5.4**
然后出现此错误:请帮助我。
| Loading Grails 2.0.4
| 配置类路径。| 环境设置为开发..... | 解析插件 C:\Documents. 请稍候... :: 问题总结 :: :::: ERRORS 服务器访问错误:连接超时:connect url=http://plugins.grails.org/grails-%5CDocuments/tags/RELEASE_and/%5CDocuments-and .pom
服务器访问错误:连接超时:connect url=http://plugins.grails.org/grails-%5CDocuments/tags/RELEASE_and/grails-%5CDocuments-and.zip
服务器访问错误:连接超时:connect url=http://repo.grails.org/grails/plugins/C/%5CDocuments/and/%5CDocuments-and.pom
服务器访问错误:连接超时:connect url=http://repo.grails.org/grails/plugins/C/%5CDocuments/and/%5CDocuments-and.zip
服务器访问错误:连接超时:connect url=http://repo.grails.org/grails/core/C/%5CDocuments/and/%5CDocuments-and.pom
服务器访问错误:连接超时:connect url=http://repo.grails.org/grails/core/C/%5CDocuments/and/%5CDocuments-and.zip
服务器访问错误:连接超时:connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-%5CDocuments/tags/RELEASE_and/%5CDocuments-and.pom
服务器访问错误:连接超时:connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-%5CDocuments/tags/RELEASE_and/grails-%5CDocuments-and.zip
服务器访问错误:连接超时:connect url=http://repo1.maven.org/maven2/C/%5CDocuments/and/%5CDocuments-and.pom
服务器访问错误:连接超时:connect url=http://repo1.maven.org/maven2/C/%5CDocuments/and/%5CDocuments-and.zip
| 解析插件 [name:\Documents, group:C, version:and] 时出错。未找到插件。| 未找到名称 [C:\Documents] 和版本 [and] 的错误插件