Maven Learning (Nexus installation)

Source: Internet
Author: User

So far, we know that when the project is added to the dependency, will be first found in the local warehouse, if the local warehouse does not have to go to the central warehouse to download to the local warehouse, then imagine, if a company a team, the same dependence, everyone's machine from the central warehouse download to their own local warehouse, is bound to waste bandwidth resources, it will greatly reduce the development efficiency.
At this point, there is a private server.

This is how each of our hosts works before using the server:

After using a server, each host works like this:

According to the picture we can see that when the local warehouse does not have a corresponding dependency, all the local warehouses are to go to the network, and is responsible for the Internet and the central warehouse to communicate. This greatly improves the efficiency of development.

Nexus Download

Nexus Download
Nexus War Pack

Nexus installation

Nexus installation is divided into two types, one based on the installation of a self-service server, and the other is a war package-based installation

Nexus based on a self-service installation

After the download is complete, unzip, I am here to extract the directory under "F:\soft\nexus-latest-bundle\nexus-2.4.0-09"

Configuring Environment variables

First you need to configure the Nexus environment variables. Add "F:\soft\nexus-latest-bundle\nexus-2.4.0-09\bin" to the path directory. After the configuration is complete, enter "Nexus" at the command line

You can see at this point that the Nexus prompts us to use the following command:
Start Open Service
Stop shutdown Service
Restart Restart Service
Install installation Service
Uninstall Uninstall Service
The following error may occur when we run "Nexus Start":

This is because we do not have enough permissions to run the command line as a system administrator.
FIX: "Run as Administrator" at the command prompt, "accessories," when entering "nexus start"

Tip We do not have the service installed, enter the "Nexus Install" installation service, after the installation is complete, run "Nexus start" again

However, we found that although the service installation was successful, it still failed to start because we also need to configure the environment variables. Open the "bin\jsw\conf\wrapper.conf" file:

Here to fix the machine to change the default Java.exe file full path.
Run the Nexus start or the net start Nexus again to open the Nexus service.

Nexus War Pack-based installation.

Copy the downloaded Nexus.war to the Tomcat WebApp directory, then go to the Tomcat Bin directory, double-click the Startup.bat file, open the Tomcat server, and after Tomcat successfully loads the Nexus.war, it will generate a nexus in the WebApp directory. Directory, as follows:

When you open the browser input http://localhost:8080/nexus/you can open the Nexus, as follows:

OK, it's here today. I hope we can enjoy it.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Maven Learning (Nexus installation)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.