无法在Windows 2012上运行Sonatype Nexus Repository Manager 3.0 [英] Cannot run Sonatype Nexus Repository Manager 3.0 on Windows 2012

查看:174
本文介绍了无法在Windows 2012上运行Sonatype Nexus Repository Manager 3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法启动Sonatype Nexus Repository Manager 3.0.0 Milestone 7版本(nexus-3.0.0-b2016011501).解压缩Windows归档文件后:

I cannot start Sonatype Nexus Repository Manager 3.0.0 Milestone 7 Release (nexus-3.0.0-b2016011501). After unzipping the Windows archive:

然后,nexus.exe/run

then, nexus.exe /run

ERROR: Bundle com.sun.jna [5] Error starting mvn:net.java.dev.jna/jna/4.0.0 (org.osgi.framework.BundleException: Unable to resolve com.sun.jna [5](R 5.0): missing requirement [com.sun.jna [5](R 5.0)] osgi.native; (|(&(osgi.native.osname~=win32)(osgi.native.processor~=x86))(&
... ... ... ...
(osgi.native.processor~=ppc))))]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Unknown Source)

推荐答案

此处打开了一个问题:

  • https://issues.apache.org/jira/browse/FELIX-5184
  • https://issues.sonatype.org/browse/NEXUS-9787

错误消息表示OSGi框架(Apache Felix)无法将操作系统和处理器名称与可用的JNA本机库之一匹配.

The error message means the OSGi framework (Apache Felix) hasn’t been able to match the OS and processor names to one of the available JNA native libraries.

您应该能够解决此问题,方法是将以下行添加到NEXUS_HOME/etc/custom.properties

You should be able to workaround this by adding the following line to NEXUS_HOME/etc/custom.properties

felix.native.osname.alias.windowsserver2012=windows server 2012,win32

其中"win32"是Felix对任何Windows操作系统使用的通用别名(然后使用处理器名称来决定是安装32位还是64位本机库).

Where "win32" is the generic alias used by Felix for any Windows OS (the processor name is then used to decide whether to install a 32 or 64 bit native library).

功劳归给 S.解决方案是McCulloch ,还有 @ manfred-moser R. Seddon ,以获取Sonatype的快速解答.

The credit goes to S. McCulloch for the solution, plus @manfred-moser and R. Seddon for the quick answer from Sonatype.

这篇关于无法在Windows 2012上运行Sonatype Nexus Repository Manager 3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆