搬砖日记

搬砖日记

Deploying Nexus3 locally to build a Maven repository

Due to a series of astonishing actions by JFREG, GITEE has disabled Maven functionality. Therefore, we need to set up the following Maven service locally.

Preparation: JDK (If you already have JDK installed on your device, please ignore this part.)

Install JDK8

sudo apt-get install openjdk-8-jdk

  1. Download

Download link: https://www.sonatype.com/thanks/repo-oss Choose the version that matches your system. Here, we will demonstrate the Linux version.

  1. Configuration

By default, Nexus uses port 8081. If the port is already in use, you need to modify the nexus-3.xxxx/etc/nexus-default.properties file.

  1. Run/Install

After downloading, extract the file to get nexus-3.xxxx. Inside, you will find two folders. Open the terminal, navigate to nexus-3.xx, then go to the bin folder and run the following command:

./nexus start #linux
./nexus.exe start #windows

For Windows, wait for the success prompt. For Linux, wait for 1-2 minutes after the success prompt, then open your local site.

  1. Login

On the first login, you will be prompted that the password is saved in the nexus-3.32.0-03-unix/sonatype-work/nexus3/admin.password file. Open the file and copy the password. The default username is admin. After logging in, you will be prompted to change the password and enable anonymous access. It is recommended to enable anonymous access.

  1. Configuration and Upload

Once logged in, click on "Upload" on the left side, then click on "Maven Release" on the right side. Fill in the information as shown below:


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.