Describe the bug
Sonatype Nexus does not start on NixOS 21.05
To Reproduce
Enable nexus service
services.nexus = { enable = true; };
The service does not start and journalctl shows
Jul 20 10:01:50 node1 systemd[1]: Starting Sonatype Nexus3...
Jul 20 10:01:50 node1 systemd[1]: Started Sonatype Nexus3.
Jul 20 10:01:50 node1 nexus-start[1194]: No suitable Java Virtual Machine could be found on your system.
Jul 20 10:01:50 node1 nexus-start[1194]: The version of the JVM must be 1.8.
Jul 20 10:01:50 node1 nexus-start[1194]: Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
Jul 20 10:01:50 node1 systemd[1]: nexus.service: Main process exited, code=exited, status=83/n/a
Jul 20 10:01:50 node1 systemd[1]: nexus.service: Failed with result 'exit-code'.
Expected behavior
The service should run.
Additional context
The issue seems to be caused by the fact, that the nexus package requires exactly java 1.8.
Adding the option
Describe the bug Sonatype Nexus does not start on NixOS 21.05
To Reproduce
journalctl
showsExpected behavior The service should run.
Additional context The issue seems to be caused by the fact, that the nexus package requires exactly java 1.8. Adding the option
fixes the issue for me.
Notify maintainers
@aespinosa @ironpinguin @zaninime
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: