配置本地maven

安装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.0

PATH=$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>alimavenid>
    <name>aliyun mavenname>
    <url>http://maven.aliyun.com/nexus/content/groups/public/url>
    <mirrorOf>centralmirrorOf>
mirror>
<localRepository>/Users/yyyyjinying/maven_repositorylocalRepository>

配置idea

配置本地maven_第1张图片

你可能感兴趣的:(maven,maven,java)