编译环境准备
安装JDK
[root@song ~]# tar -zxvf jdk-8u271-linux-x64.tar.gz
[root@song ~]# mv jdk1.8.0_271/ /usr/local/java
[root@song ~]# vim /etc/profile
# set java env
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
[root@song ~]# source /etc/profile
[root@song ~]# java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
安装maven
[root@song ~]# wget https://mirrors.advancedhosters.com/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz
[root@song ~]# tar -zxvf apache-maven-3.8.1-bin.tar.gz
[root@song ~]# mv apache-maven-3.8.1 /usr/local/maven
[root@song ~]# vim /etc/profile
# set mvn env
export MVN_HOME=/usr/local/maven
export PATH=$M
|