Nexus 3 Install

 

Setup Env

set MAVEN_HOME=c:\prog\apache-maven-3.6.1
set JAVA_HOME=C:\prog\jdk1.8.0_221
set path=%JAVA_HOME%/bin;%path%

Install Nexus 3

* Download, e.g. nexus-3.28.1-01-win64.zip, from https://help.sonatype.com/repomanager3/download
* Unzip, e.g. into C:\prog\nexus so you have C:\prog\nexus\nexus-3.28.1-01

Change Listingin Port

* Change listening port if needed:
– edit both etc/nexus.properties and etc/nexus-default.properties

# Jetty section
application-port=9081

Change Java Home

* Change java home if needed:
– edit/create C:\prog\nexus\nexus-3.28.1-01\.install4j\pref_jre.cfg

C:\prog\jdk1.8.0_221

Manual Start

* Start

cd C:\prog\nexus\nexus-3.28.1-01\bin
nexus.exe /run

* Control C to stop

Install as Service

* Install/uninstall as service

cd C:\prog\nexus\nexus-3.28.1-01\bin
nexus.exe /install nexus3
# uninstall service if needed
nexus.exe /uninstall nexus3

Nexus 3 Console

* Nexus console url:
http://localhost:9081
* Login: admin
– first time password can be found in
C:\prog\nexus\sonatype-work\nexus3\admin.password on the server.
– You need to change admin password.

References

* https://help.sonatype.com/repomanager3/installation

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.