These instructions are applicable if you are running Nexus Repository 3.0.0, 3.0.1, or 3.0.2.
If you are upgrading from version 3.1.0 or later, please use these instructions instead.
Before Upgrading
At runtime, Nexus Repository 3 picks up the default properties automatically. So if you update from OSS to PRO, PRO settings will persist (if a license is in place). Basically, any settings in nexus.properties will take precedence over nexus-default.properties. Our intent is that you DO NOT EDIT nexus-default.properties, only nexus.properties.
Before Upgrading
Before you upgrade from 3.0.2 to 3.1.0, you’ll need to get familiar with the new disk layout for 3.1.0. It consists of a sonatype-work folder with a nested nexus3 directory containing all your content and configurations. Don’t modify your nexus-defaults.properties file. Instead, modify the nexus.properties file created in sonatype-work once you start version 3.1.0.
Upgrading 3.0.2 to 3.1.0
Perform your upgrade as follows:
- Locate your 3.0.2 data directory.
- Locate your 3.0.2 application directory.
- Download and extract the distribution archive for 3.1.0 for your operating system.
- Stop running version 3.0.2 of your Nexus Repository.
- Manually back up the contents of the
$3.0.2-02/datato another location. - Copy or move the contents of
$3.0.2-02/dataso they overwrite the contents of/sonatype-work/nexus3/in 3.1.0. - Create a
nexus.propertiesfile in/sonatype-work/nexus3/etcin 3.1.0. - Copy the contents of
$3.0.2-02/etc/org.sonatype.nexus.cfgto$3.1.0-04/../sonatype-work/nexus3/etc/nexus.properties. - Remove any mention of
nexus-editionornexus-featuresin the 3.1.0 data directory, i.e.$3.1.0-04/../sonatype-work/nexus3/etc/nexus.properties. -
In
$3.1.0-04/../sonatype-work/nexus3/etc/nexus.propertiesreplace each${karaf.etc}with${jetty.etc}in thenexus-argsproperty. E.g.nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml. - If you have made customizations in
$3.0.2-02/etc/, you will need to manually re-apply these changes to 3.1.0-04. - Start Nexus Repository using the scripts in
nexus-3.1.0-04/bin/, or your service.