2017-10-24 3 views
0

Nexusを起動しようとしてもこのエラーが発生します。URLを使用してstartup.propertiesにバンドルをインストールする際にエラーが発生しました:mvn:org.ops4j.pax.url/pax-url-aether/2.4.7

Error installing bundle listed in startup.properties with url: mvn:org.ops4j.pax.url/pax-url-aether/2.4.7 and startlevel: 1 
     java.lang.NullPointerException 
     at org.apache.karaf.main.Main.destroy(Main.java:593) 
     at org.sonatype.nexus.karaf.NexusMain.main(NexusMain.java:55) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
       at 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:498) 
     at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62) 
     at 
    com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:63) 

解決方法

+0

Nexusのバージョンは何ですか?どこから手に入れましたか? startup.propertiesのバンドルは、Karafによって特別に開始されます。例えば、pax-url-aetherは 'mvn:' schemeを使って解決できません。なぜなら、このプロトコルを扱うこのバンドルだからです –

答えて

0

nexus/systemフォルダのファイルアクセス許可が正しいですか?私も同様のエラーがありました。nexus/systemここではrootが所有し、Nexusを実行するユーザーはnexusではありません。

sudo chown nexus:nexus -R /opt/nexus/を実行して問題を解決しました。

関連する問題