当前位置: 首页 > 知识库问答 >
问题:

在圣杯 2.4.3 中手动安装 rest-client-builder 2.1.1

吴弘壮
2023-03-14

我需要在圣杯2.4.3中安装Rest客户端生成器2.1.1,但我的互联网访问非常有限,并且落后于代理。我从 https://repo.grails.org 插件的整个文件夹中下载,文件是:

  • rest-client-builder-2.1.1-plugin.xml
  • rest-client-builder-2.1.1-plugin.xml.md5
  • rest-client-builder-2.1.1-plugin.xml.sha1
  • rest-client-builder-2.1.1.pomrest-client-builder-2.1.1.pom.md5
  • rest-client-builder-2.1.1.pom.sha1rest-client-builder-2.1.1.zip
  • rest-client-builder-2.1.1.zip.md5rest-client-builder-2.1.1.zip.sha1

我将其复制到我的.m2文件夹中,地址为:.m2/repository/org/grails/plugins/rest-client-builder/2.1.1,但当我运行:grails-install-plugin-rest-client-builder 2.1.1时,我出现了以下错误:安装插件时出错:grails。org(使用--stacktrace查看完整的跟踪)

这是完整的跟踪(使用- stacktrace)

Error installing plugin: grails.org (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.net.UnknownHostException: grails.org
    at InstallPlugin$_run_closure1.doCall(InstallPlugin.groovy:70)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:591)
    at gant.Gant.executeTargets(Gant.groovy:590)
| Error Error installing plugin: grails.org

有什么帮助吗?先谢谢你

共有1个答案

岑叶秋
2023-03-14

对我来说,它起作用了:

>

  • 安装cntlm并配置我的代理的设置。
  • 在终端中运行:

    grails添加代理客户端--host=http://localhost/“--端口=3128”

    (3128是cntlm的默认端口)

    在BuildConfig.groovy中添加此配置

    repositories {
    ...
    mavenRepo "http://repo.grails.org/grails/plugins" 
    mavenRepo "http://repo1.maven.org/maven2" 
    }
    
    plugins {
    ...
    //REST plugin
            compile ":rest-client-builder:2.1.1"
    }
    

  •  类似资料:
    • 我使用Spring安全核心插件。我想在用户登录后立即将对象放入会话中。到目前为止,我发现插件中有。它有一个称为的方法,它似乎在成功进行身份验证后被调用。所以我决定创建另一个LoginController,它扩展了默认控制器并覆盖了此方法: 但是调试表明这个方法从来没有被调用过。出了什么问题?可能有另一种方法来做我想做的事吗?谢谢大家!

    • 获取软件 获取 Ceph 软件的方法有多种,最简单、通用的获取软件包方法是添加软件源之后通过包管理工具(像 APT 、 YUM )操作;也可以直接从 Ceph 仓库下载预编译软件包;最后,你可以下载源码包或克隆 Ceph 源码库、并自行编译。 获取二进制包 获取源码包 克隆源码 构建 Ceph 安装软件 获取到(或者软件库里有) Ceph 软件包之后,安装很简单。要在集群内的各节点安装,你可以用

    • 我上面代码的日志是: 数据库也会更新。为什么lock()不工作?不是在lock()之后其他实例无法更新吗?还是别的什么?还是我错过了什么?

    • 问题内容: 在过去的8个月中,我一直在运行和开发一个分类网站,所有错误均仅归因于以下一个原因:用户如何输入文本… 我的问题是 :是否有一个php类,一个插件,我可以做些什么 在发送$ str到我的SQL之前?? PS。当我开始使用JSON时,我还注意到问题翻了一番,因为我还必须小心在JSON中输出结果。 我遇到的一些问题:多语言字符串(不同的字符集),从Excel工作表中复制粘贴。 注意:我不担心

    • 手动安装 SBT Unix 将sbt-launch.jar包放到目录 ~/bin中 创建一个运行jar包的脚本 ~/bin/sbt, 脚本内容为: SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" java $SBT_OPTS -jar `dirname $0`/sbt-l

    • 甚至不知道在这一点上从哪里开始。我已经安装了圣杯 3.2.4 我正在使用智能J IDEA 终极版 2016.1.我可以使用grails-3.2.4创建一个新的圣杯项目,它似乎成功了,圣杯控制台显示创建应用程序是成功的。项目将创建并打开一个 IDEA 窗口,但显示以下消息: 我不知道这个错误来自何处,也不知道如何指定密钥库。如果我进入项目目录(~/myProject)并尝试从命令行运行grails,