Question

Using Maven, you get Maven repositories. Tools like Nexus ou Artifactory have the ability to mirror (or proxy) remote repositories and self-hosted ones to expose an aggregated view of all downloadable artifacts (or dependencies in the Bower jargon). You get the same mechanism for other dependency managers like Ivy oy Gradle (Maven, Ivy/Ant & Gradle are more than just dependency managers, but it's not the point here).

With Bower, you can set up remote registries from which dependencies will be downloaded. But a great thing in a corporate environment would be to have a self hosted repository working like those describe above.

I have search the Web but did not find any convincing solution. Did you know any of them?

Was it helpful?

Solution

From what I understand Bower uses npm and as such you can use Nodejitsu.

Support for npm repositories is also a requested feature for Nexus. If you are interested in that, vote on the issue and you might see it implemented in the not too distant future ;-)

In the meantime you can potentially use webjars

Update 2015-03-13: NPM support has been available in Nexus OSS and Pro for a while now. Read more about setting it all up in the documentation. However to clarify the Bower repository format is different from the npm format. The Bower team is hoping to move everything to NPM and stop development and hosting, but that is an ongoing effort.

Update 2016-04-11: The new release of Nexus Repository Manager OSS 3.0 has full support for npm and bower.

OTHER TIPS

private-bower provide private bower registry hosting and public registry caching.

Artifactory Pro can do this now. Although the reason I stumbled into this question on StackOverflow is that I'm trying to figure out how precisely to do it. I don't yet follow what if anything I'm supposed to do to support the Repository Layout.

Sonatype Nexus will have support for Bower in Nexus 3. Once this is released, this will probably be the easiest solution, particularly for anyone doing Java development. So make sure you check if this solution is available before just picking the "checked" solution.

Here's the ticket: https://issues.sonatype.org/browse/NEXUS-6884

Until that happens, go with private-bower: https://github.com/Hacklone/private-bower

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top