Mounting the maven maven (1) -linux environment

1. Download Baidu installation package apache-maven

2. Extract

3. Set Environment Variables 

Reference: https: //www.cnblogs.com/yiyaxuan/p/12461689.html

# Configure jdk environment variable
Export JAVA_HOME = / Home / Parallels / jdk1.8.0_161 /
Export the PATH = $ the PATH: $ JAVA_HOME / bin
Export the CLASSPATH =:. $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar
# configure jmeter environment variable
Export JMETER_HOME = / Home / Parallels / jmeter-the Apache-5.2
Export the CLASSPATH = $ JMETER_HOME / lib / EXT / ApacheJMeter_core.jar: $ JMETER_HOME / lib / jorphan.jar: the CLASSPATH $
Export $ JMETER_HOME the PATH = / bin : $ the PATH: $ the HOME / bin
# configure maven environment variable
Export MAVEN_HOME = / Home / Parallels / the Apache-maven-3.6.3
Export $ MAVEN_HOME the PATH = / bin: $ the PATH
# ant configuration environment variable
export ANT_HOME = / home / parallels /apache-ant-1.10.7
Export the PATH = $ the PATH: $ ANT_HOME / bin

4. mvn -v

Guess you like

Origin www.cnblogs.com/yiyaxuan/p/12461704.html