Repository Management with Nexus


25.2. Getting Started

This guide is based on the usage of Nexus Pro. A lot of the core features are available in Nexus OSS as well and some examples are suitable to assess the open source version as well.

When Nexus has started just click the URL in the wizard or go to http://localhost:8081/nexus in a browser window.


This guide and the examples reference the Nexus URL http://localhost:8081/nexus. If you have chosen to use a different port during the installation of the trial simply change the URLs.

Below are are several directories to know:

Nexus Installation Directory: This is where the Nexus application files are installed on your system. We refer to this as <nexus_install>.

Nexus Work Directory: This directory contains your specific Nexus instance configuration files. We refer to this as <nexus_work>.

Nexus Eval Guide Directory: This directory contains supporting sample project files and this document. We refer to this as <nexus_eval>.


You can locate these directories by viewing the Nexus Control Panel.

In case something goes wrong and Nexus seems to be unavailable, you can examine the following two log files to diagnose problems.


Nexus tries to listen on port 8081. If you have another application listening on this port, Nexus will not be able to start. You can change the port Nexus listens on. Open this file


Edit the line that looks like this:


For example, to access Nexus on port 9090 instead, change the line to


Save the file and restart Nexus.

25.2.1. Activating Your Nexus Trial

Once Nexus is started and you are accessing the user interface the first time, you will see the trial activation form. Provide your full name, email address, organization, and location and click on Submit Activation Request.

You will immediately receive an email from Sonatype with the subject “Your Nexus Pro Trial License,” which contains your trial license key. Paste this license key into the license field in the Nexus Pro user interface. Click Activate to activate your 14-day Nexus Pro trial. Once your trial is activated, you will be presented with the Nexus user interface.

25.2.2. Logging Into Nexus as an Administrator

After activating your Nexus install, you can log into Nexus as an administrator. Go to http://localhost:8081/nexus/ and click on the Login button in the upper right-hand corner of the interface.


Figure 25.1. Nexus User Interface with Login

The default administrator username is admin and password is admin123.

The Nexus Pro Trial evaluation guide assumes that you are logged in as an administrator.

25.2.3. Getting Started with Your Nexus Pro Evaluation

To make it easier to evaluate Nexus, we’ve created a set of projects to demonstrate the features of Nexus OSS and Nexus Pro. These example projects are bundled with the trial installer for your convenience.

In addition, they are available as the nexus-book-examples project on GitHub at for you to download and inspect separately, if desired. The latest version of all the examples is available as a zip archive at

When you downloaded the trial distribution of Nexus Pro, your server is also preconfigured to demonstrate important features.

The Nexus trial distribution contains the following customizations:

  • Nexus has been preconfigured to download the search index from the Central Repository.
  • A Staging profile has been configured to demonstrate release management.
  • Nexus proxies NuGet Gallery so that you can quickly evaluate support for .NET development.