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>
Fourth, modify the configuration information in the idea
Please leave a message if you have any questions.
@andmin_tai Original