在Maven构建中使用的RubyGem代理?

发布于 2025-01-29 13:39:42 字数 987 浏览 1 评论 0 原文

在我的Maven构建中,我使用Asciidoctor-Maven-Plugin,可以使用纯宝石依赖性。

要渲染图,我使用 asciidoctor-kroki ,只有 ruby​​ gem

结果,我使用 gem-maven-plugin 允许下载gems作为Maven依赖性。不幸的是,自上周以来,由于已过期。根据 twitter ,我发现它可以用 http://mavengems.jruby.org/releases 。尝试过该URL后,什么都没有改变:依赖关系仍然无法更改,我遇到了同样的错误。

我可以用哪个URL使我的构建工作?

In my maven build, I use asciidoctor-maven-plugin, which can use pure gem dependencies.

To render diagrams, I use asciidoctor-kroki, which is only available as a ruby gem.

As a consequence, I use the gem-maven-plugin which allow to download gems as maven dependencies. Unfortunatly, since the last week, I can no more download the dependency due to the fact that http://rubygems-proxy.torquebox.org/releases is expired. According to Twitter, I've found that it could be replaced with http://mavengems.jruby.org/releases. After having tried that url, nothing changed: the dependency still cannot be changed, and I'm stuck with the same error.

Which URL can I use to have my build working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最美不过初阳 2025-02-05 13:39:42

因此,由于所有翻译回购的jruby都已经过期,因此我必须依靠另一种解决方案……这是<​​a href =“ https://github.com/jruby/jruby/mavengem/mavengem” rel =“ nofollow noreferrer”>“ nofollow noreferrer”> mavengem下载<< /a> maven插件。

要配置该插件,我必须更改Ruby Gems存储库的声明:

    <repository>
            <id>mavengems</id>
            <url>mavengem:https://rubygems.org</url>
        </repository>

我必须将插件添加到我的POM

        <extensions>
            <extension>
                <!-- this allows us to download gems -->
                <groupId>org.torquebox.mojo</groupId>
                <artifactId>mavengem-wagon</artifactId>
                <version>1.0.3</version>
            </extension>
        </extensions>

通知中,以作为扩展名添加,以便能够提供补充连接协议。

两种配置都进行了更改后,一切都可以正常工作。

So, since all JRuby translating repoitories have expired, I had to rely upon another solution ... which is the mavengem download maven plugin.

To configure that plugin, I had to change the declaration of the ruby gems repository:

    <repository>
            <id>mavengems</id>
            <url>mavengem:https://rubygems.org</url>
        </repository>

And I had to add the plugin to my pom

        <extensions>
            <extension>
                <!-- this allows us to download gems -->
                <groupId>org.torquebox.mojo</groupId>
                <artifactId>mavengem-wagon</artifactId>
                <version>1.0.3</version>
            </extension>
        </extensions>

Notice it is added as an extension, to be able to provide supplementary connection protocols.

Once both these configurations changes were done, everything worked correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文