Nexus兼容存储库,用于获取节点和npm安装程序 [英] Nexus-compliant repository to get node and npm installers
问题描述
我正在寻找一个与nexus兼容的存储库,可以在其中获得节点安装程序(与 http://nodejs.org兼容的nexus替代方案) /dist/.
I am looking for a nexus-compliant repository where I can get a node installer (a nexus-compliant alternative to http://nodejs.org/dist/.
上下文:
在Java环境中,我们的构建由maven处理.最近,我们添加了一个javascript前端应用程序,我正在尝试使用出色的插件 frontend-maven-plugin 通过maven构建它. a>.
In a java environment, our builds are processed by maven. Recently we add a javascript frontend app and I am trying to get it built via maven with the excellent plugin frontend-maven-plugin.
该插件将安装node和npm,然后运行npm install
和grunt build
.
一切正常.
The plugin installs node and npm, then run npm install
and grunt build
.
Everything works perfectly.
但是我们必须将我们所有的依赖关系置于联系(或某些本地代理存储库)下.
But we MUST put all our dependencies under nexus (or some locally proxified repository).
-
关于前端依赖项:没问题,因为nexus 2.10支持npm注册表.可以.
About frontend dependencies: no problem since nexus 2.10 supports the npm registries. It works.
关于节点和npm安装程序,它们最初是通过 http://nodejs.org/dist/下载的插件,我不知道如何在本地代理此仓库...或在与nexus兼容的仓库中可以找到这些安装程序.
About the node and npm installers, they are initially downloaded from http://nodejs.org/dist/ by the plugin, and I do not know how to locally proxify this repo ... or where I can find theses installers on a nexus-compliant's one.
有什么建议吗?
谢谢.
推荐答案
我建议为前端插件创建请求请求/补丁,使您可以为npm和node添加完整的URL,而不仅仅是版本和根网址.然后,您可以托管两个已安装的文件,例如通过将它们上传到Nexus到Maven 2存储库中并使用该URL.我为此顺便提了一个问题. https://github.com/eirslett/frontend-maven-plugin/issues/126
I would suggest to create a pull request/patch for the frontend plugin that allows you to add a full url for npm and node rather than just the version and the root url. Then you can host the two installed e.g. by uploading them to Nexus into a Maven 2 repository and using that URL. I filed an issue for that btw. https://github.com/eirslett/frontend-maven-plugin/issues/126
或者可以尝试在Nexus中使用相同的结构创建网站存储库并使用它.
Alternatively could try to create a site repository in Nexus with the same structure and use that.
这篇关于Nexus兼容存储库,用于获取节点和npm安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!