diff --git a/README.md b/README.md
index 1fbefca..a77e374 100644
--- a/README.md
+++ b/README.md
@@ -115,7 +115,7 @@ Nexus uses [OrientDB](https://en.wikipedia.org/wiki/OrientDB) as its database. T
sudo su -l # switch to the root user.
systemctl stop nexus # make sure nexus is not running while you use the database.
su -s /bin/bash nexus # switch to the nexus user.
-nexus_home=/opt/nexus/nexus-3.19.1-01 # make sure you have the correct version here.
+nexus_home=/opt/nexus/nexus-3.20.0-04 # make sure you have the correct version here.
nexus_data=$nexus_home/../sonatype-work/nexus3
function orientdb-console {
java -jar $nexus_home/lib/support/nexus-orient-console.jar $*
diff --git a/provision/provision-nexus.sh b/provision/provision-nexus.sh
index 7408d19..e8ba74f 100644
--- a/provision/provision-nexus.sh
+++ b/provision/provision-nexus.sh
@@ -30,19 +30,20 @@ install -d -o root -g nexus -m 750 /opt/nexus
# download and install nexus.
pushd /opt/nexus
-# see http://www.sonatype.com/download-oss-sonatype
+# see https://www.sonatype.com/download-oss-sonatype
+# see https://help.sonatype.com/repomanager3/download/download-archives---repository-manager-3
# see https://help.sonatype.com/display/NXRM3
-nexus_version=3.19.1-01
+nexus_version=3.20.0-04
nexus_home=/opt/nexus/nexus-$nexus_version
nexus_tarball=nexus-$nexus_version-unix.tar.gz
nexus_download_url=https://sonatype-download.global.ssl.fastly.net/nexus/3/$nexus_tarball
-nexus_download_sha1=33121c338aa3e232a16156ad8edaa168aeb2f52c
+nexus_download_sha1=6a9f3b8ce453e711044751a788c5c804f7c541ad
wget -q $nexus_download_url
if [ "$(sha1sum $nexus_tarball | awk '{print $1}')" != "$nexus_download_sha1" ]; then
echo "downloaded $nexus_download_url failed the checksum verification"
exit 1
fi
-tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.19.1-01) and sonatype-work directories.
+tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.20.0-04) and sonatype-work directories.
rm $nexus_tarball
install -d -o nexus -g nexus -m 700 .java # java preferences are saved here (the default java.util.prefs.userRoot preference).
install -d -o nexus -g nexus -m 700 sonatype-work/nexus3/etc
@@ -50,6 +51,10 @@ chown -R nexus:nexus sonatype-work
grep -v -E '\s*##.*' $nexus_home/etc/nexus-default.properties >sonatype-work/nexus3/etc/nexus.properties
sed -i -E 's,(application-host=).+,\1127.0.0.1,g' sonatype-work/nexus3/etc/nexus.properties
sed -i -E 's,nexus-pro-,nexus-oss-,g' sonatype-work/nexus3/etc/nexus.properties
+cat >>sonatype-work/nexus3/etc/nexus.properties <<'EOF'
+# disable the wizard.
+nexus.onboarding.enabled=false
+EOF
diff -u $nexus_home/etc/nexus-default.properties sonatype-work/nexus3/etc/nexus.properties || true
popd
diff --git a/provision/provision-nexus/Makefile b/provision/provision-nexus/Makefile
index 0edbb7b..647e6e7 100644
--- a/provision/provision-nexus/Makefile
+++ b/provision/provision-nexus/Makefile
@@ -17,7 +17,7 @@ binaries: binaries-download
binaries-download:
mkdir -p binaries
- wget -qO- https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.19.1-01-unix.tar.gz \
+ wget -qO- https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.20.0-04-unix.tar.gz \
| tar xzf - --strip-components 1 -C binaries
clean:
diff --git a/provision/provision-nexus/pom.xml b/provision/provision-nexus/pom.xml
index 2c12c9e..57fb75c 100644
--- a/provision/provision-nexus/pom.xml
+++ b/provision/provision-nexus/pom.xml
@@ -8,7 +8,7 @@
1.0-SNAPSHOT
- 3.19.1-01
+ 3.20.0-04
diff --git a/provision/provision-nexus/provision-nexus.iml b/provision/provision-nexus/provision-nexus.iml
index 3e0e6aa..17e5f4c 100644
--- a/provision/provision-nexus/provision-nexus.iml
+++ b/provision/provision-nexus/provision-nexus.iml
@@ -22,21 +22,21 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
@@ -57,30 +57,31 @@
+
-
-
+
+
-
+
-
-
-
+
+
+
-
-
+
+
-
+
-
+
@@ -90,39 +91,39 @@
-
-
-
+
+
+
-
+
-
-
+
+
+
+
-
-
-
-
+
+
-
-
-
+
+
+
-
-
+
+
@@ -131,11 +132,11 @@
-
-
-
+
+
+
-
+
@@ -158,7 +159,7 @@
-
+
@@ -167,12 +168,12 @@
-
-
+
+
-
+
-
+