If the last property in the nexus.vmoptions does not have LF/CRLF after it (i.e. another line) then it will not be read in by the application.
Steps to reproduce
The easiest way to show this is to move the line -Dkaraf.home=. in the nexus.vmoptions to the very bottom of the file and ensure there is no line created underneath it:
1. edit the nexus.vmoptions
2. move the line -Dkaraf.home=. to the very bottom of the file and ensure there is no additional line underneath, i.e. do not press ENTER after the line.
3. attempt to start NxRM
It will fail immediately as it has not been able to read in the base repo folder
NOTE - you easily see which settings have been read in via the jvm.log
Came across this one today where a customer needed to add the line -Djdk.tls.ephemeralDHKeySize=2048 to their Ansible deployed NxRM and it wasn't being read in.
Not a serious issue however, I wonder how many other customers have had non-essential settings ignored because of this.