每次尝试通过" grails install-plugin uploadr"来安装uploadr插件时,我都面临同样的错误。命令,我已在compile ":uploadr:0.8.2"
中映射BuildConfig.groovy
,但后来也得到了此
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
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
答案 0 :(得分:0)
您正在HTTP代理后面工作,Grails无法访问互联网。你需要
grails add-proxy My-Proxy --host=proxy-server --port=4300 // according to [this][1]
然后activate代理配置
grails set-proxy My-Proxy