Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for downloading node or npm binaries from Nexus repository #413

Open
aneesh-joseph opened this issue May 5, 2016 · 6 comments
Open

Comments

@aneesh-joseph
Copy link

PR #330 was awesome and I know that this feature was discussed in the same thread(pushing NPM and Node binaries to Maven Central and making the plugin to fetch the binaries from the Maven repositories instead of using the NPM or Node download URLs)

Is this still being considered? If you think uploading all versions of node/npm to central will be a pain, could you please provide an optional parameter to configure the download URL, something like

<nodeDownloadURL>http://mynexus.com/my/groupid/node/${version}/node-${version}-${platform}-${architecture}.${extension}</nodeDownloadURL>

and replace the variables at runtime to figure out the actual download URL

This would help in fetching the binaries from a private Nexus repo/or any other kind of repository.

If you are ok with either of the options, I can raise a PR for the same 😄

@eirslett
Copy link
Owner

eirslett commented May 5, 2016

The reason you cannot set a full URL is that it wouldn't be cross-platform compatible. As you can see on nodejs.org, there are separate URLs for Windows, Linux and OS X.
I think the newest version of Nexus supports mirroring a site like nodejs.org. If not, I know people use to upload the node/npm artifacts manually to their in-house nexus server, which works as well.

@jgangemi
Copy link
Contributor

jgangemi commented May 5, 2016

i already do this..nexus can mirror npm by default, so you just need to set up the appropriate proxy host.

node and npm itself are not as easy. what i have done is create hosted site in nexus and i stick the binaries in there and then specify the appropriate url in the plugin configuration. it works well and w/o issue.

@bimlesh1980
Copy link

Hi @jgangemi , can I have example(screenshot) for setting proxy in @pom.xml and path for uploaded binaries (folder) structure in nexus.

@dlsharp
Copy link

dlsharp commented Jun 4, 2018

How do you configure the plugin so that yarn pulls dependencies from Nexus? My company has Nexus setup to mirror npm, but I can't figure out how to configure the plugin so that it configures yarn to pull from the Nexus server.

@lokanx
Copy link

lokanx commented Mar 26, 2019

We are fetching node/npm binaries from nexus using maven-dependency-plugin and then installing them in local repository using maven-install-plugin plugin. After that we invoke frontend plugin goal install-node-and-npm. Works like a charm.

I also think it is possible to fetch npm modules from nexus by configure npm itself using.

@jgangemi
Copy link
Contributor

it would be nice if a direct url could be supported. there are ways in maven to ensure the proper binary is selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants