Grails从企业防火墙后面安装一个阻止访问的插件 [英] Grails installing a plugin from behind corporate firewall which blocks access

查看:99
本文介绍了Grails从企业防火墙后面安装一个阻止访问的插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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



更新



 服务器访问错误:连接被拒绝:
connect url = http: //grails.org/plugins/grails-spring-security-core/tags/RELEASE_3_0_7_RELEASE/spring-security-core-3.0.7.RELEASE.pom


解决方案

Abe,



这是Grails.org页面的链接Spring Security Core: 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 列出了以下依赖项:

 <依赖性> 
<编译>
< 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>
< /依赖关系>

您得到的错误信息是Grails插件尝试解决对Spring Security Core的依赖3.0.7。



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

Spring安全核心3.0.7.RELEASE Spring Security Web 3.0.7.RELEASE 并将它们安装到您当地的Ivy Repository中。



这是一个关于安装到本地常春藤仓库的Stackoverflow文章(请参阅公认的答案):无法将jar文件手动添加到.ivy缓存



这里是一个额外的Stackoverflow链接:本地资源库的常青藤教程?



基于更多研究的其他更新
$ b

Grails Spring Security Core插件1.2.7.3 dependencies.groovy



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

<$ p
grailsPlugins()
grailsHome()
grailsCentral()

mavenCentral()
// Add mavenLoc如果您已经将依赖关系安装到本地Ivy Repository
mavenLocal()
}



理想的情况是,如果你可以找到一个公共存储库,你可以通过具有依赖关系的防火墙访问公共存储库,那么你不需要经过尝试安装到本地常春藤库的步骤。

Grails plugin's page is accessible but when I try to install plugins from command prompt, it is blocked by our corporate firewall.

I see that you can download plugins(the one I am trying to install is spring-security-core) and then install it. But the download provided in the spring-security page does not download everything. Is there a link/place I can download the whole plugin and then install them manually?

Update
Example of an error I am getting, when I install.

            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

解决方案

Abe,

Here is a link to the Grails.org page for Spring Security Core: Grails Spring Security Core.

There is a download button which will allow you to down a ZIP file of the latest released Spring Security Core (1.2.7.3) from codehaus.org.

There are also links on this page to extension plugins for Spring Security (Spring Security OpenID, Spring Security ACL, etc).

Hope this helps.

UPDATE

In Grails Spring Security Core plugin 1.2.7.3, plugin.xml lists the following dependencies:

<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>

The error message you are getting is an attempt by the Grails plugin to resolve the dependency on Spring Security Core 3.0.7.

I believe that you can just go and download the 2 dependencies:

Spring Security Core 3.0.7.RELEASE and Spring Security Web 3.0.7.RELEASE and install them to your local Ivy Repository.

Here is a Stackoverflow post (see the Accepted Answer) on installing to your Local Ivy Repository: Unable to add jar file to .ivy cache manually

Here is an additional Stackoverflow link: good ivy tutorial for local repository?

Additional Update based on more research

Grails Spring Security Core Plugin 1.2.7.3 dependencies.groovy

If you end up putting the dependencies in your local Ivy Repository, you will need to edit dependencies.groovy and add mavenLocal() to your repositories.

repositories {
    grailsPlugins()
    grailsHome()
    grailsCentral()

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

Ideal scenario would be if you can find a public Repository that you can reach through your firewall that has the dependencies, then you would not need to go through the steps of trying to install to your local Ivy Repository.

这篇关于Grails从企业防火墙后面安装一个阻止访问的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆