Linux-maven deployment

Source: Internet
Author: User

First, what is MAVEN?

Second, MAVEN deployment

1. Environmental information:

(1) centos7.3

(2) jdk1.8

(3) maven3.5.3

2. Installing the JDK

(1) "http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"

(2) Deploy JDK

#cd/usr/local/src/
#wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie" '/http Download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz ' # tar -zxf jdk-8u161-linux-x64. tar. gz
#mv jdk1.8.0_161/usr/local/jdk1.8

(3) Configuring Java variables

#vim/etc/Profile Add the following configuration Java_home=/usr/local/jdk1. 8 jre_home= $JAVA _home/jrepath= $PATH: $JAVA _home/bin: $JRE _home/Binclasspath=: $JAVA _home /lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib/dt.jarexport java_home jre_home PATH Classpat

#source/etc/profile

(4) Test Java

# java-"1.8.0_161"1.8. 0_161-  25.161-b12, Mixed mode)

3. Deploy Maven

(1) "https://maven.apache.org/download.cgi"

(2) Deploying MAVEN

#cd/usr/local/src#wget'http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.3/ binaries/apache-maven-3.5.3-bin.tar.gz'

#mv apache-maven-3.5.3/usr/local/Mave

(3) Configuring environment variables

#vim/etc/Profile Add the following configuration Maven_home=/usr/local/mavenexport maven_home  export PATH=${path}:${ Maven_home}/bin

#source/etc/profile

(4) test

# MVN-Versionapache Maven3.5.3(3383c37e1f9e9b3bc3df5050c29c8aff9f295297;2018- Geneva-25t03: the: to+ ,:xx) Maven Home:/usr/local/Mavenjava Version:1.8. 0_161, Vendor:oracle Corporationjava home:/usr/local/jdk1.8/Jredefault Locale:en_us, platform Encoding:utf-8OS Name:"Linux", Version:"3.10.0-693.el7.x86_64", Arch:"AMD64", Family:"Unix"

Linux-maven deployment

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.