MAVEN is already set up, and now it's time to build a configuration nexus to get the functionality of the function ha.
1, Nexus download
Nexus official Download, latest version download: nexus-2.4.0-09-bundle.tar.gz
Nexus War Download: Nexus-2.4.0-09.war
Nexus has two kinds of installation implementation, one is the way of war package, put it directly in such as Tomcat can be enabled, there is a source of the way, as an operation or like the source of the way the said Ha. Let's go...
2, Nexus installation
Unzip the tar.gz file:
#cd/home/tools
#tar ZXVF nexus-2.4.0-09-bundle.tar.gz
Move Directory
#mv Nexus-2.4.0-09/usr/local/nexus
3, Nexus Boot
Nexus boot is in the bin directory, first look at the startup/shutdown/restart command, Input command:
#cd/usr/local/nexus/bin
#./nexus
The following options appear:
[Email protected] bin]#./nexus
Usage:./nexus {Console | start | stop | restart | status | dump}
Start Nexus:
#./nexus start
Close Nexus:
#./nexus stop
4, Nexus Verification
After you start the Nexus, enter the address in your native browser: Http://localhost:8081/nexus
The page above shows that the configuration Nexus is successful!
In the upper-right corner, click "Log In" to enter the user name and password (default username: admin Password: admin123) login
5. Settings
1. Click on the left repositories to change the Download Remote Index configuration to True for all type is proxy configuration options
If you need the agent to configure the bottom of the override Http proxy Setting on the hook and fill in the Proxy server address and port, last save the settings
2. Then right-click the ReIndex in the list
3. Add your own jar to Nexus
Check 3rd party, Artifact Upload label
GAV Definition Selection GAV Parameters
Fill out Group Artifact version Packaging
Then select the jar package to upload the submission.
Linux Build Nexus