-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPM doesn't allow to use Java 11 #33
Comments
There are a pile of issues, and I wish I had more time to hammer on them. Here's a few notes and some nasty workarounds I found recently. These are NOT at all true solutions, but thought I'd share in the mean time, in case it helps others:
Any help in finding real solutions to the above is greatly appreciated! |
I don't know enough about debian so cannot help on the issues you posted, but I can volunteer to work on RPM issue in my original post. |
A PR for the RPM part is most welcome. FWIW, there may be some other surprises lurking once java 11 is in use, but we can deal with those as they arise. As to building the rpm locally, start from here: https://github.com/sonatype-nexus-community/nexus-repository-installer?tab=readme-ov-file#overview: (Yes, the .deb is basically just built from the .rpm (via alien), so best to start with a fix for the .rpm first) |
I've successfully adjusted spec file to pull Java 11 dependency:
However, there is seems another issue. There are two different Nexus Repository binaries which should be used for different Java support https://help.sonatype.com/en/download.html . I have inquired here sonatype/nexus-public#118 for confirmation how it is different, but from what it looks either RPM with Java 11 support needs to be released under new name, or we must switch RPM to only support Java 11 and inform users that some older OSes are not supported anymore. |
@ViliusS As mentioned in that other issue, there are still some "Java 9+" options/changes required for startup that I'm not sure we want to dive into just yet. Those might be related to the reason multiple downloads are currently needed. I also saw mention in the other thread that OrientDB is limited to Java11. All that said, I'm wondering how deep we want to go into the Java 11 woods right now, and wondering if it makes sense to wait a bit longer and maybe things will get better for 11+? (I don't have any inside info on this - pure speculation on my part). |
Let's wait for the answer in that other issue, and see how the binaries are actually different. Even if Nexus will be compatible with Java 17 at some point in the future, I still think there will be a need to decide on:
|
Hi there, Three files are different:
i4jparams.conf:
nexus (the bash script for starting nexus)
nexus.vmoptions:
This seems to be it, all the other files are the same. |
Since 3.67.0 Nexus Repository Manager now support Java 11, however RPM spec file has Java 8 requirement hardcoded.
It's probably best that Nexus Repository Manager RPM would depend on virtual
java-headless
package which will install default Java environment on the chosen OS. It could be even limited for 8 and 11 versions of Java only, if needed.The only question is probably to test how this behaves in the current installation. Will it automatically uninstall/reinstall Java version appropriately.
The text was updated successfully, but these errors were encountered: