upgrade to nexus 3.6.0-02

This commit is contained in:
Rui Lopes 2017-10-12 23:39:25 +01:00
parent 48d3bf7162
commit 7f92937d44
8 changed files with 77 additions and 64 deletions

View File

@ -4,7 +4,8 @@ set -eux
admin_username=${admin_username:-admin}
admin_password=${admin_password:-admin123}
# see https://books.sonatype.com/nexus-book/3.4/reference/scripting.html
# see https://help.sonatype.com/display/NXRM3/REST+and+Integration+API
# see https://nexus.example.com/swagger-ui/
function nexus-groovy {
local source_filename="/vagrant/provision/provision-nexus/src/main/groovy/$1.groovy"

View File

@ -62,7 +62,7 @@ popd
# install and configure nginx to proxy to nexus.
# see https://books.sonatype.com/nexus-book/3.4/reference/install.html#reverse-proxy
# see https://help.sonatype.com/display/NXRM3/Installation#Installation-RunningBehindaReverseProxy
apt-get install -y --no-install-recommends nginx
rm -f /etc/nginx/sites-enabled/default
cat >/etc/nginx/sites-available/$config_fqdn.conf <<EOF

View File

@ -22,10 +22,10 @@ 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://books.sonatype.com/nexus-book/3.4/reference/index.html
nexus_tarball=nexus-3.4.0-02-unix.tar.gz
# see https://help.sonatype.com/display/NXRM3
nexus_tarball=nexus-3.6.0-02-unix.tar.gz
nexus_download_url=https://sonatype-download.global.ssl.fastly.net/nexus/3/$nexus_tarball
nexus_download_sha1=27133f1d6cc6c6c1731a8cf3aa329059a5a86e01
nexus_download_sha1=8278ecb4969e2a2eb3abe373cb1914a4b863160c
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"

View File

@ -5,7 +5,7 @@ Inside IDEA you can browse the sources with `control+left-click` to see which me
To execute the `src/main/groovy/provision.groovy` file inside the Vagrant
environment run `bash /vagrant/execute-provision.groovy-script.sh`.
For more information see the Nexus [scripting documentation](https://books.sonatype.com/nexus-book/3.4/reference/scripting.html) and [examples](https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting).
For more information see the Nexus [scripting documentation](https://help.sonatype.com/display/NXRM3/REST+and+Integration+API) and [examples](https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting).
# Source Code

View File

@ -8,7 +8,7 @@
<version>1.0-SNAPSHOT</version>
<properties>
<nx-version>3.4.0-02</nx-version>
<nx-version>3.6.0-02</nx-version>
</properties>
<dependencies>
<dependency>

View File

@ -8,23 +8,22 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-core:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-bootstrap:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-core:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-bootstrap:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:log4j-over-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: uk.org.lidalia:sysout-over-slf4j:1.0.2" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.plexus:plexus-interpolation:1.24" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-supportzip-api:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.1" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-email:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-email:1.4" level="project" />
<orderEntry type="library" name="Maven: com.sun.mail:javax.mail:1.5.2" level="project" />
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-ssl:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-supportzip-api:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.9" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-email:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-email:1.5" level="project" />
<orderEntry type="library" name="Maven: com.sun.mail:javax.mail:1.5.6" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-ssl:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.geronimo.framework:geronimo-crypto:2.2.1" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-webhooks:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-script:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-common:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-webhooks:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-script:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-common:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.0" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:21.0" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.sisu:org.eclipse.sisu.inject:0.3.2" level="project" />
@ -43,7 +42,10 @@
<orderEntry type="library" name="Maven: org.sonatype.goodies:goodies-lifecycle:2.2.4" level="project" />
<orderEntry type="library" name="Maven: joda-time:joda-time:2.9.5" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.groovy:groovy-all:2.4.11" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-validation:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: commons-cli:commons-cli:1.4" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-task-logging:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-validation:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:1.1.0.Final" level="project" />
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.1.2.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.1.3.GA" level="project" />
@ -52,15 +54,15 @@
<orderEntry type="library" name="Maven: com.thoughtworks.paranamer:paranamer:2.8" level="project" />
<orderEntry type="library" name="Maven: javax.ws.rs:javax.ws.rs-api:2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.ivy:ivy:2.3.0" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-security:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-audit:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-formfields:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-security:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-audit:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-formfields:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.goodies:goodies-i18n:2.2.4" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-jmx:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-cache:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-jmx:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-cache:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1" level="project" />
<orderEntry type="library" name="Maven: org.ehcache:ehcache:3.2.1" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-crypto:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-crypto:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpg-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.56" level="project" />
@ -72,52 +74,61 @@
<orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.1" level="project" />
<orderEntry type="library" name="Maven: com.google.inject.extensions:guice-servlet:4.1.0" level="project" />
<orderEntry type="library" name="Maven: com.google.inject.extensions:guice-multibindings:4.1.0" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-repository:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-capability:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-mime:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-repository:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-capability:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-mime:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.tika:tika-core:1.14" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.8.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.8.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.0" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-orient:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-core:2.2.22" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-orient:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-rest:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-core:2.2.27" level="project" />
<orderEntry type="library" name="Maven: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.1" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-server:2.2.22" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-client:2.2.22" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-tools:2.2.22" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-server:2.2.27" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-client:2.2.27" level="project" />
<orderEntry type="library" name="Maven: com.orientechnologies:orientdb-tools:2.2.27" level="project" />
<orderEntry type="library" name="Maven: javax.mail:mail:1.4.7" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-thread:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore-api:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore-file:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-joda:2.8.9" level="project" />
<orderEntry type="library" name="Maven: com.codahale.metrics:metrics-core:3.0.2" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-thread:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore-api:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-blobstore-file:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: com.squareup:tape:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-httpclient:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-httpclient:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.2" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.6" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-elasticsearch:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.bundles:org.sonatype.nexus.bundles.elasticsearch:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.8.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.8.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.8.1" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.15" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-elasticsearch:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.bundles:org.sonatype.nexus.bundles.elasticsearch:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.8.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.8.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.8.9" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.17" level="project" />
<orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.6" level="project" />
<orderEntry type="library" name="Maven: com.vividsolutions:jts:1.13" level="project" />
<orderEntry type="library" name="Maven: com.ning:compress-lzf:1.0.2" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty:3.10.6.Final" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-transaction:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-scheduling:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-selector:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-transaction:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-scheduling:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.jboss.resteasy:resteasy-jaxrs:3.1.3.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:1.0.1.Beta1" level="project" />
<orderEntry type="library" name="Maven: org.jboss.resteasy:resteasy-jaxrs-services:3.1.3.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.0.Final" level="project" />
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
<orderEntry type="library" name="Maven: net.jcip:jcip-annotations:1.0" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-selector:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-jexl3:3.0" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-commands:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus:nexus-commands:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.osgi:org.osgi.core:6.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.shell:org.apache.karaf.shell.core:4.0.8" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.shell:org.apache.karaf.shell.core:4.0.9" level="project" />
<orderEntry type="library" name="Maven: jline:jline:2.14.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.jaas:org.apache.karaf.jaas.boot:4.0.8" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.jaas:org.apache.karaf.jaas.boot:4.0.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.sshd:sshd-core:0.14.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.shell:org.apache.karaf.shell.commands:4.0.8" level="project" />
<orderEntry type="library" name="Maven: org.apache.karaf.shell:org.apache.karaf.shell.commands:4.0.9" level="project" />
<orderEntry type="library" name="Maven: org.jledit:core:0.2.1" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.12" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-repository-maven:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-repository-maven:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.apache.maven:maven-model:3.3.3" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.plexus:plexus-utils:3.0.20" level="project" />
<orderEntry type="library" name="Maven: org.apache.maven:maven-repository-metadata:3.3.3" level="project" />
@ -126,7 +137,7 @@
<orderEntry type="library" name="Maven: org.eclipse.aether:aether-spi:1.0.2.v20150114" level="project" />
<orderEntry type="library" name="Maven: org.apache.maven.indexer:indexer-reader:5.1.2-816025a" level="project" />
<orderEntry type="library" name="Maven: org.apache.maven.archetype:archetype-catalog:2.4" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-repository-raw:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-script-plugin:3.4.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-repository-raw:3.6.0-02" level="project" />
<orderEntry type="library" name="Maven: org.sonatype.nexus.plugins:nexus-script-plugin:3.6.0-02" level="project" />
</component>
</module>

View File

@ -1,6 +1,6 @@
// run this file inside the Vagrant environment with bash /vagrant/execute-provision.groovy-script.sh
// see https://books.sonatype.com/nexus-book/3.4/reference/scripting.html
// see https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting/nexus-script-example
// see https://help.sonatype.com/display/NXRM3/REST+and+Integration+API
// see https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting/nexus-script-example
import groovy.json.JsonOutput
import org.sonatype.nexus.security.user.UserSearchCriteria
@ -12,7 +12,7 @@ import org.sonatype.nexus.scheduling.schedule.Daily
// create a raw repository backed by the default blob store.
// see https://github.com/sonatype/nexus-book-examples/blob/nexus-3.x/scripting/complex-script/rawRepositories.groovy
// see https://books.sonatype.com/nexus-book/3.4/reference/raw.html#_uploading_files_to_hosted_raw_repositories
// see https://help.sonatype.com/display/NXRM3/Raw+Repositories+and+Maven+Sites#RawRepositoriesandMavenSites-UploadingFilestoHostedRawRepositories
repository.createRawHosted("adhoc-package", "default")
@ -21,7 +21,7 @@ repository.createNpmHosted("npm-hosted", "default")
// create a npm proxy repository backed by the default blob store.
// see http://books.sonatype.com/nexus-book/reference3/npm.html
// see https://help.sonatype.com/display/NXRM3/Node+Packaged+Modules+and+npm+Registries
repository.createNpmProxy("npmjs.org-proxy", "https://registry.npmjs.org", "default")
@ -39,7 +39,7 @@ jenkinsPassword = random((('A'..'Z')+('a'..'z')+('0'..'9')).join(), 16)
// set the base url. this is used when sending emails.
// see https://books.sonatype.com/nexus-book/3.4/reference/admin.html#admin-base-url
// see https://help.sonatype.com/display/NXRM3/Configuration#Configuration-BaseURLCreation
core.baseUrl("https://" + java.net.InetAddress.getLocalHost().getCanonicalHostName())

View File

@ -7,7 +7,7 @@ mkdir -p tmp && cd tmp
#
# test the NuGet repository.
# see https://books.sonatype.com/nexus-book/3.4/reference/nuget.html
# see https://help.sonatype.com/display/NXRM3/.NET+Package+Repositories+with+NuGet
if ! which mono; then
sudo apt-get install -y mono-complete
@ -75,7 +75,7 @@ sudo apt-get install -y xmlstarlet
# setup the user maven configuration to use nexus as a mirror the
# official maven repository.
# see https://books.sonatype.com/nexus-book/3.4/reference/maven.html
# see https://help.sonatype.com/display/NXRM3/Maven+Repositories
# see https://maven.apache.org/guides/mini/guide-mirror-settings.html
mkdir -p ~/.m2
cat >~/.m2/settings.xml <<'EOF'
@ -167,7 +167,7 @@ popd
apt-get install -y curl
# upload.
# see https://books.sonatype.com/nexus-book/3.4/reference/raw.html#_uploading_files_to_hosted_raw_repositories
# see https://help.sonatype.com/display/NXRM3/Raw+Repositories+and+Maven+Sites#RawRepositoriesandMavenSites-UploadingFilestoHostedRawRepositories
expected='this is an adhoc package'
echo "$expected" >package-1.0.0.txt
curl --silent --user 'alice.doe:password' --upload-file package-1.0.0.txt http://localhost:8081/repository/adhoc-package/package-1.0.0.txt
@ -178,6 +178,7 @@ actual=$(curl --silent http://localhost:8081/repository/adhoc-package/package-1.
#
# test the npm repositories.
# see https://help.sonatype.com/display/NXRM3/Node+Packaged+Modules+and+npm+Registries
# install node LTS.
# see https://github.com/nodesource/distributions#debinstall