【问题标题】:Sonatype Nexus OSS fails to load nexus-npm-repository-pluginSonatype Nexus OSS 无法加载 nexus-npm-repository-plugin
【发布时间】:2014-07-05 10:56:57
【问题描述】:

我正在尝试使用 nexus-npm-repository-plugin 扩展我的 Sonatype Nexus OSS 实例。

我尝试从源代码编译并从https://github.com/georgy/nexus-npm-repository-plugin/releases 安装版本,但完全没有运气:

尽管它是在 Jenkins 中成功构建的,但当我尝试部署 bundle 时,我的 nexus 实例告诉我以下信息:

Name    Nexus npm repository plugin
Version 0.0.1
Status  Broken
Description Adds npm (https://www.npmjs.org/) capabilities to Nexus OSS
SCM Version b272d72cba8b6eadc8bade76eb71495ab60ba3af
SCM Timestamp   N/A
Site    http://nexus.bolyuba.com
This plugin was not able to be activated

 ... com.bolyuba.nexus.plugin:nexus-npm-repository-plugin:0.0.1 :: action=ACTIVATE result=BROKEN
       Reason: Problem installing: reference:file:/home/tomcat-nexus/sonatype-work/nexus/plugin-repository/nexus-npm-repository-plugin-0.0.1/

我研究了调试输出,发现尽管 bundle 提供了以下结构:

nexus-npm-repository-plugin-0.0.1
                         \_nexus-npm-repository-plugin-0.0.1.jar
                         |_dependencies
                                        \_gson-2.2.4.jar

nexus 实例尝试直接在sonatype-work/nexus/plugin-repository/nexus-npm-repository-plugin-0.0.1/ 而不是sonatype-work/nexus/plugin-repository/nexus-npm-repository-plugin-0.0.1/nexus-npm-repository-plugin-0.0.1.jar 中查找文件 META-INF/MANIFEST.MF。 我试图将 nexus-npm-repository-plugin-0.0.1.jar 的内容提取到 sonatype-work/nexus/plugin-repository/nexus-npm-repository-plugin-0.0.1/ 但没有运气。

您能否告诉我我到底做错了什么以及如何解决这个问题。

【问题讨论】:

    标签: java node.js npm nexus


    【解决方案1】:

    您必须确保插件源中引用的 Nexus 版本和您正在运行的 Nexus 版本对于初学者来说是相同的。先试试那个。

    2014-09-15 更新:Sonatype 正在积极开发该插件。你应该试一试。查看 nexus-2.10.x 分支。 https://github.com/sonatype/nexus-npm-repository-plugin/tree/nexus-2.10.x 并确保使用 Nexus 2.10 构建。

    【讨论】:

      猜你喜欢
      • 2022-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-20
      • 2019-06-19
      • 1970-01-01
      • 2016-05-11
      • 2016-08-03
      • 2013-07-21
      相关资源
      最近更新 更多