Sonatype Nexus OSS无法加载nexus-npm-repository-plugin

时间:2014-05-16 21:09:45

标签: java node.js npm nexus

我正在尝试使用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 /但没有运气。

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

1 个答案:

答案 0 :(得分:0)

您必须确保插件源中引用的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版本。

相关问题