Grails权限被拒绝错误

时间:2013-04-23 11:22:49

标签: grails

我正在尝试运行Grails应用程序,我从SVN repo中检出了它,我收到以下错误!

Server access Error: Permission denied: connect url=http://grails.org/plugins/grails-mysql-connector-java/tags/RELEASE_5_1_20/mysql-connector-java-5.1.20.pom

Server access Error: Permission denied: connect url=http://grails.org/plugins/grails-mysql-connector-java/tags/RELEASE_5_1_20/grails-mysql-connector-java-5.1.20.jar

Server access Error: Permission denied: connect url=http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.20/mysql-connector-java-5.1.20.pom

Server access Error: Permission denied: connect url=http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.20/mysql-connector-java-5.1.20.jar

Server access Error: Permission denied: connect url=http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_1_2_7_3/spring-security-core-1.2.7.3.pom

Server access Error: Permission denied: connect url=http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_1_2_7_3/grails-spring-security-core-1.2.7.3.jar

Server access Error: Permission denied: connect url=http://repo1.maven.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom

Server access Error: Permission denied: connect url=http://repo1.maven.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.jar

| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- mysql:mysql-connector-java:5.1.20
- org.grails.plugins:spring-security-core:1.2.7.3

当我尝试导航到该链接时,它给出了404错误。我该如何解决这个问题?

3 个答案:

答案 0 :(得分:0)

Grails试图通过自动下载来解决应用程序的依赖关系,但无论出于何种原因都无法访问这些网站。您需要使这些依赖项可访问(最简单的方法是手动安装它们)。有关如何处理,请参阅this answer。答案仅涉及Spring Security Core依赖项,但该解决方案适用于所有依赖项。

答案 1 :(得分:0)

当我收到错误时,我与VPN连接,我从VPN断开连接,一切正常!

答案 2 :(得分:0)

听起来您无法连接到存储库。这可能是因为尝试从防火墙后面访问它们。配置代理将有助于解决许多这些问题。

Example:
grails add-proxy client --host=proxy-server --port=4300 --username=guest --password=guest
grails set-proxy client

阅读文档here