Skip to main content

Overriding the Installed Nexus Repository License File Location

In Linux and MacOS environments, you can override the installed Nexus Repository license file location. Note that this does not apply to Windows environments.

Use the following steps to override the default location of the Java user preferences using a system property that changes the location of where the license is stored or from which it is read:

  1. Find and edit the <app_dir>/bin/nexus.vmoptions file.

  2. At the end of the file, add a new line like the following; note that the absolute path must point to an already created directory that is readable by the user account owning the repository manager process:

    -Djava.util.prefs.userRoot=/absolute/path/to/already/created/directory

This is also the directory to which the product license will be written when installed through a supported method.