简体   繁体   English

Grails无法安装上载器插件

[英]Grails unable to install uploadr plugin

I am facing same error every time m trying to install uploadr plugin through "grails install-plugin uploadr" command , i have mapped compile ":uploadr:0.8.2" in the BuildConfig.groovy but then also getting this 每当尝试通过“ grails install-plugin uploadr”命令安装uploader插件时,我都遇到相同的错误,我在BuildConfig.groovy映射了compile ":uploadr:0.8.2" ,但同时也得到了这个

error.![error][1]
| Error Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2 (Use --stacktrace to see the full trace)
| Error Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2

The stacktrace output looks something like that:- stacktrace输出看起来像这样:

Caused by: 
org.apache.http.client.HttpResponseException: Proxy Authorization Required (407)     
    at org.eclipse.aether.transport.http.HttpTransporter.handleStatus(HttpTransporter.java:458) 

    at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:283)

    at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:235)  

    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)

    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)    

    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)      


| Error Resolve error obtaining dependencies: Failed to read artifact descriptor  for org.grails.plugins:uploadr:zip:0.8.2  
| Error Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2   

You are working behind a HTTP proxy and Grails cannot access the internet. 您正在使用HTTP代理,Grails无法访问Internet。 You need to 你需要

grails add-proxy My-Proxy --host=proxy-server --port=4300  // according to [this][1]   

and then activate the proxy configuration by 然后通过以下方式激活代理配置

grails set-proxy My-Proxy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM