我正在尝试将以下插件http://grails.org/plugin/oauth安装到我的新Grails项目中,但每次我尝试操作时都会遇到错误
D:\MyProjects\Grails\grails48>grails install-plugin oauth 2.1.0
| Resolving plugin oauth. Please wait...
:: problems summary ::
:::: ERRORS
Server access Error: Connection timed out: connect url=http://grails.org/plugins/grails-oauth/tags/RELEASE_2_1_0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://grails.org/plugins/grails-oauth/tags/RELEASE_2_1_0/grails-oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/core/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/core/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://snapshots.repository.codehaus.org/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://snapshots.repository.codehaus.org/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://repository.codehaus.org/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://repository.codehaus.org/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://download.java.net/maven/2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://download.java.net/maven/2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://repository.jboss.com/maven2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://repository.jboss.com/maven2/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
Server access Error: Connection timed out: connect url=http://repo.desirableobjects.co.uk/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.pom
Server access Error: Connection timed out: connect url=http://repo.desirableobjects.co.uk/org/grails/plugins/oauth/2.1.0/oauth-2.1.0.zip
|解析插件时出错[name:oauth,group:org.grails.plugins,version:2.1.0]。找不到插件。 |找不到名称[oauth]和版本[2.1.0]
的错误插件答案 0 :(得分:0)
尝试在 BuildConfig.groovy 中添加以下repo:
mavenRepo“http://repo.desirableobjects.co.uk/”