Location>code7788 >text

Installation and Deployment of Maven (No-Treading-Mine Version)

Popularity:84 ℃/2024-10-12 20:28:04

Configuring maven in ideaNote that the maven version matches the idea version.. I am using idea version 2020.3, jdk1.8, maven3.6.3 can match it.

I. Download maven
maven download official website address:/
I use the maven 3.6.3 web link:/s/1TdY9dc-cjI1za_5LRA6Y3A?pwd=1d5e
maven is a green software unzipped can be

Here, remember where the maven files are stored (storage address)No Chinese characters

II. Configuring environment variables
1. Open your computer's advanced system settings

Setting environment variables

Setting in system variables.
New -> Variable name: MAVEN_HOME Variable value: maven file storage address Example: D:\maven\apache-maven-3.6.3

Set path -> new: %MAVEN_HOME%\bin

Win+r, type cmd, enter the command mvn -v, the pop-up version means that the installation has been completed.

III. Configuring Maven
Create a new empty repository folder under maven's files to be used as a local repository for storing dependencies downloaded from remote repositories.

Setting up the files in the maven file

Click to view code
Set the local repository address:
<localRepository> D:\maven\repository<localRepository/>
Add the Ali mirror:
    <mirror>
        <id>alimaven</id>
        <name>aliyun-maven</name>
        <mirrorOf>central</mirrorOf>
        <url>/nexus/content/groups/public</url>
    </mirror>
***win+r,input cmd,input command mvn help:system,display BUILD SUCCESS means the installation is successful. ***

Fourth, modify the configuration information in the idea

Please leave a message if you have any questions.

@andmin_tai Original