在 nexus oss 中注册 bower 包

register bower packages in nexus oss

我已经使用这个教程配置了 Bower 和 Nexus:

https://books.sonatype.com/nexus-book/3.0/reference/bower.html

我有 bowerrc.json 如下:

{ "registry" : { "search" : [ "http://localhost:8081/repository/bower-all/" ], "register" : "http://localhost:8081/repository/bower-internal" }, "resolvers" : [ "bower-nexus3-resolver" ] }

我使用 bower-nexus3-resolver 作为集成 Bower 和 Nexus 的解析器。 此配置安装 bower 包,包缓存在 nexus 中,但我无法在 nexus 中本地注册我自己的 bower 包?

注册您自己的包已记录 here。按照那里的步骤应该可以正常工作。请记住,Bower 注册表通常会指向 git 服务器,因此您也必须拥有该 运行。