简体   繁体   English

Nexus OSS 3.30.0-01 Java 版本不支持最新的 java 版本

[英]Nexus OSS 3.30.0-01 Java version doesnt pick up latest java version

Trying to upgrade java version to 11 from 1.8 but nexus starts back to nexus 1.8尝试将 java 版本从 1.8 升级到 11,但 nexus 开始回到 nexus 1.8

logs from nexus where I enabled this parameter with java version 11来自我使用 java 版本 11 启用此参数的 nexus 的日志

# Uncomment the following line to override the JVM search sequence
INSTALL4J_JAVA_HOME_OVERRIDE=/usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/bin/java
# Uncomment the following line to add additional VM parameters
# INSTALL4J_ADD_VM_PARAMS=

Logs from java

  Active: active (running) since Thu 2021-12-09 15:05:55 EST; 5s ago
  Process: 231743 ExecStop=/opt/nexus-3.30.0-01/bin/nexus stop (code=exited, status=0/SUCCESS)
 Main PID: 231988 (java)
   CGroup: /system.slice/nexus.service
           └─231988 /usr/lib/jvm/jre-1.8.0/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/jre-1.8.0 -Dexe4j.moduleName=/opt/nexus-3.30.0-01/bin/nexus -XX:+UnlockDi...

Dec 09 15:05:55 devlnxnexus02 systemd[1]: Started nexus service.


There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*  1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre/bin/java)
 + 2           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/bin/java)
   3           /usr/lib/jvm/java-11-openjdk/bin/java

I am using java 17 to build the service and making use nexus oss 3.30.0.1.我正在使用 java 17 来构建服务并使用 nexus oss 3.30.0.1。 The angular package.json has below properties to pull a specic version of jar from nexus. angular package.json 具有以下属性,可从 nexus4 中提取特定版本的 Z68995FCBF432492D15484D4D。 "verigon-sharedlib": "2.16.2712", Irrespective of the fact hardcoded version given to pull jars from nexus its not doing so. “verigon-sharedlib”:“2.16.2712”,不管硬编码版本是否从 nexus 中提取 jars,它都没有这样做。 But after some time interval ( around 120mins), if we try to build the package again it picks up latest and mentioned version.但是经过一段时间(大约 120 分钟)后,如果我们再次尝试构建 package,它会选择最新的和提到的版本。 So there is basically a dalay while it picks up mentioned/latest jar from nexus.因此,当它从 nexus 获取提到的/最新的 jar 时,基本上有一个日子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM