1

我正在尝试运行 Grails 应用程序,我从 SVN 存储库中检查了它,但出现以下错误!

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 错误。我该如何解决这个问题?

4

3 回答 3

0

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

于 2013-04-23T11:59:10.333 回答
0

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

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

在此处阅读文档。

于 2013-06-24T16:42:15.173 回答
0

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

于 2013-04-23T12:08:16.143 回答