安装maven安装包
修改环境变量
vim ~/.bash_profile
export JMETER_HOME=/Users/yyyyjinying/apache-jmeter-5.4.1
export GOROOT=/usr/local/go
export GOPATH=/Users/yyyyjinying/demo-file/git/backend/go
export GROOVY_HOME=/Users/yyyyjinying/sortware/groovy-4.0.14
export MYSQL_HOME=/user/local/mysql
export TOMCAT_HOME=/Users/yyyyjinying/sortware/apache-tomcat-8.5.79
export GRADLE_HOME=/Users/yyyyjinying/.sdkman/candidates/gradle/8.3
export GRADLE_USER_HOME=/Users/yyyyjinying/.gradle
export MAVEN_HOME=/usr/local/apache-maven-3.6.0PATH=$PATH:$GOROOT/bin:$GROOVY_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME/bin:$GRADLE_HOME/bin:$GRADLE_USER_HOME:$JMETER_HOME/bin:$MAVEN_HOME/bin
配置本地仓库和配置远程仓库
vim /usr/local/apache-maven-3.6.0/conf/settings.xml
<mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf>
</mirror>
<localRepository>/Users/yyyyjinying/maven_repository</localRepository>