diff --git a/README.md b/README.md index 776abdb..1fbefca 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ This will: # Caveats -* Most of the repository plugins are not open-source. - * Only `maven`, `raw`, `npm` and `PyPI` are open-source. +* Not all the repository plugins are open-source. + * The open-source ones are available at [sonatype/nexus-public/plugins](https://github.com/sonatype/nexus-public/tree/master/plugins). # Usage @@ -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.16.1-02 # make sure you have the correct version here. +nexus_home=/opt/nexus/nexus-3.19.1-01 # 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/nexus-groovy.sh b/provision/nexus-groovy.sh index 2d2107b..d055be4 100644 --- a/provision/nexus-groovy.sh +++ b/provision/nexus-groovy.sh @@ -2,7 +2,7 @@ set -eux admin_username=${admin_username:-admin} -admin_password=${admin_password:-admin123} +admin_password=${admin_password:-$(cat /opt/nexus/sonatype-work/nexus3/admin.password)} # see https://help.sonatype.com/display/NXRM3/REST+and+Integration+API # see https://nexus.example.com/swagger-ui/ diff --git a/provision/provision-nexus.sh b/provision/provision-nexus.sh index 0519410..7408d19 100644 --- a/provision/provision-nexus.sh +++ b/provision/provision-nexus.sh @@ -32,17 +32,17 @@ install -d -o root -g nexus -m 750 /opt/nexus pushd /opt/nexus # see http://www.sonatype.com/download-oss-sonatype # see https://help.sonatype.com/display/NXRM3 -nexus_version=3.16.1-02 +nexus_version=3.19.1-01 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=e8494f9619e6214e03c1c0036f6f3e413bf8bcb8 +nexus_download_sha1=33121c338aa3e232a16156ad8edaa168aeb2f52c 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.16.1-02) and sonatype-work directories. +tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.19.1-01) 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 diff --git a/provision/provision-nexus/Makefile b/provision/provision-nexus/Makefile index 2466010..0edbb7b 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.16.1-02-unix.tar.gz \ + wget -qO- https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.19.1-01-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 e7af17a..2c12c9e 100644 --- a/provision/provision-nexus/pom.xml +++ b/provision/provision-nexus/pom.xml @@ -8,7 +8,7 @@ 1.0-SNAPSHOT - 3.16.1-02 + 3.19.1-01 diff --git a/provision/provision-nexus/provision-nexus.iml b/provision/provision-nexus/provision-nexus.iml index 297ddbe..3e0e6aa 100644 --- a/provision/provision-nexus/provision-nexus.iml +++ b/provision/provision-nexus/provision-nexus.iml @@ -8,41 +8,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -55,33 +22,21 @@ - - - - - - - - - - - - - - + + - - + + - - + + - - - + + + @@ -94,17 +49,17 @@ - + - + - - + + @@ -113,18 +68,20 @@ - - - - - - + + + + + + - + + + @@ -133,14 +90,13 @@ - - - - + + + + - - + @@ -152,19 +108,21 @@ - - - - - + + + + + - + + + - - + + @@ -173,19 +131,18 @@ - - - + + + - + - - - - - - - + + + + + + @@ -198,10 +155,10 @@ - + - - + + @@ -210,12 +167,12 @@ - - + + - + - + diff --git a/provision/summary.sh b/provision/summary.sh index 5dbf94d..dcf7f1c 100644 --- a/provision/summary.sh +++ b/provision/summary.sh @@ -1,6 +1,8 @@ #!/bin/bash set -eux +. /vagrant/provision/nexus-groovy.sh + config_fqdn=$(hostname --fqdn) # show the installation summary. @@ -9,7 +11,7 @@ nexus is running at: https://$config_fqdn -use the admin/admin123 credentials to login. +use the admin/$admin_password credentials to login. the api browser at: