The local Development private library is designed to solve the problem that the local start is limited by the network environment, and the concrete construction steps include the following steps:
1, the server is using Ubuntu, first download the installation package (version number: 2.12),: http://www.sonatype.org/nexus/go/After the download is complete, the tar.gz compression package is extracted directly to the/OPT directory;
2, the specific will see two folders, respectively, Snaptype-work and nexus-2.12.1-01, because the current path needs to use root permissions to handle,
Edit Startup Script/opt/nexus-2.12.1-01/bin/nexus
Turn on script execution User Configuration item Run_as_user=root
Save the configuration;
3. Start the service
./nexus Start
After the correct boot is complete, access the Http://127.0.0.1:8081/nexus in the browser
Click Login in the upper right corner to login, the default account is admin/admin123
Then respository the basic configuration of the local repository in the left menu:
4. Basic Configuration
After the above startup is complete, the absolute path corresponding to the local warehouse http://127.0.0.1:8081/nexus/content/groups/public/is/opt/sonatype-work/nexus/storage/ Public
5. How to use the local database properly
The main focus is to modify the URL address of the MAVEN central repository to a local warehouse address, such as http://127.0.0.1:8081/nexus/content/groups/public/
"Snaptype Nexus" to build a Maven repository