Install Maven under Linux

Source: Internet
Author: User

1. Download the latest Nexus installation package

: Https://www.sonatype.com/download-oss-sonatype

2, download JDK7,NEXUS2 version support JDK7;NEXUS1 version support JDK6

: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Download the JDK according to your machine selection

3. Installing JDK and NEXUS2

1) rz-y: Upload jdk and Nexus files to Linux server;

2) TAR-ZXVF jdk-7u79-linux-x64.gz: Unzip the JDK

3) TAR-ZXVF nexus-2.14.0-01-bundle.tar.gz: Unzip Nexus

4. Configure Environment variables

1) vi/etc/profile

2) environment variables are as follows:

Export JAVA_HOME=/USR/LOCAL/JDK7

Export JRE_HOME=/USR/LOCAL/JDK7/JRE

Export path= $JAVA _home/bin: $JRE _home/bin: $PATH

Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libexport java_home jre_home PATH CLASSPATH

Export maven_home=/usr/local/maven3.0

Export path= $MAVEN _home/bin: $PATH

3) Source/etc/profile: Effective environment variable

4) Check that the JDK is installed successfully

5. Start Nexus

1) CD Nexus installation path/bin

2)./nexus Start Start

3)./nexus Stop Stop

6, installation Nexus2 startup may be reported errors

Error:

1) Warning-not RECOMMENDED to RUN as ROOT

Solve

2) Modify the Nexus under the NEXUS2 installation path/bin

3) found #run_as_user= changed to Run_as_user=root

7. The background log file may appear error when installing NEXUS1.

1) The specific error is not affixed to the general JDK version is not correct

Solve

2) Install JDK6

3) Modify configuration file: Nexus1 installation path/bin/jsw/conf/wrapper.conf

4) Modify the WRAPPER.JAVA.COMMAND=JDK6 installation path/bin/java

8. Launch Nexus Access Http://IP:8081/nexus success

Install Maven under Linux

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.