的Grails的OAuth插件无法安装

问题描述:

我试图安装插件之后向http://grails.org/plugin/oauth我的新Grails工程,但每一次我尝试instail我正在刚开以下错误的Grails的OAuth插件无法安装

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 

|解析插件时出错[名称:oauth,组:org.grails.plugins,版本:2.1.0]。未找到插件。 |插件找不到名称[OAuth的]和版本[2.1.0]

+0

是你在网上或离线?似乎像Grails不能解决依赖关系 – aldrin

+0

我在线我在防火墙内,但我也设置代理。我尝试检查这些url,但在这些url中没有找到插件jar! – Rajmahendra

+0

请注意,您通常不应该再使用'grails install-plugin',而应该使用依赖项DSL [按照oauth插件文档中的建议](http://aiten.github.com/grails-oauth-scribe/guide /quickStart.html)。 –

尝试添加以下回购在BuildConfig.groovy错误:

mavenRepo “http://repo.desirableobjects.co.uk/