gpt4 book ai didi

Grails 从公司防火墙后面安装插件来阻止访问

转载 作者:行者123 更新时间:2023-12-02 09:59:45 24 4
gpt4 key购买 nike

Grails 插件的页面可以访问,但是当我尝试从命令提示符安装插件时,它被我们的公司防火墙阻止。

我看到你可以下载插件(我正在尝试安装的是 spring-security-core)然后安装它。但是 spring-security 页面中提供的下载并没有下载所有内容。有没有一个链接/地方可以下载整个插件,然后手动安装它们?

更新
安装时遇到的错误示例。

            Server access Error: Connection refused: 
connect url=http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_3_0_7_RELEASE/spring-security-core-3.0.7.RELEASE.pom

最佳答案

安倍,

这里是 Spring Security Core 的 Grails.org 页面的链接:Grails Spring Security Core .

有一个下载按钮,可让您从 codehaus.org 下载最新发布的 Spring Security Core (1.2.7.3) 的 ZIP 文件。

此页面上还有 Spring Security 扩展插件的链接(Spring Security OpenID、Spring Security ACL 等)。

希望这有帮助。

更新

在 Grails Spring Security Core 插件 1.2.7.3 中,plugin.xml 列出了以下依赖项:

<dependencies>
<compile>
<dependency group='org.springframework.security' name='spring-security-core' version='3.0.7.RELEASE' />
<dependency group='org.springframework.security' name='spring-security-web' version='3.0.7.RELEASE' />
</compile>
</dependencies>

您收到的错误消息是 Grails 插件尝试解决对 Spring Security Core 3.0.7 的依赖关系。

我相信你可以去下载 2 个依赖项:

Spring Security Core 3.0.7.RELEASESpring Security Web 3.0.7.RELEASE 并将它们安装到本地 Ivy 存储库。

这是一个有关安装到本地 Ivy 存储库的 Stackoverflow 帖子(请参阅已接受的答案): Unable to add jar file to .ivy cache manually

这里有一个额外的 Stackoverflow 链接:good ivy tutorial for local repository?

基于更多研究的额外更新

Grails Spring Security 核心插件 1.2.7.3 dependency.groovy

如果您最终将依赖项放入本地 Ivy 存储库中,则需要编辑 dependency.groovy 并将 mavenLocal() 添加到您的存储库中。

repositories {
grailsPlugins()
grailsHome()
grailsCentral()

mavenCentral()
// Add mavenLocal if you have installed the dependencies to the local Ivy Repository
mavenLocal()
}

理想的情况是,如果您可以找到一个可以通过具有依赖项的防火墙访问的公共(public)存储库,那么您就不需要执行尝试安装到本地 Ivy 存储库的步骤。

关于Grails 从公司防火墙后面安装插件来阻止访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12060268/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com