Maven configuration in MAC

Time:2021-11-26

download

Download firstMaven
Maven configuration in MAC

After downloading, unzip it and find a directory to store it.

Maven configuration in MAC

Create a repository folder to store the downloaded jar packages.
Maven configuration in MAC

Then modify the configuration file

Maven configuration in MAC

The main two are the location where the binding jar package is stored and the location where the image is downloaded

<localRepository>~/Local/apache-maven-3.6.3/repository</localRepository>

<mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <mirrorOf>central</mirrorOf>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

Maven configuration in MACMaven configuration in MAC

This work adoptsCC agreement, reprint must indicate the author and the link to this article