Table of contents
Configure maven environment variables
Download Maven to directory
Configure maven environment variables
create add MAVEN_HOME并
inPath
%MAVEN_HOME%\bin;
Enter the command in the command line window: mvn -version
to view the version and installation location of Maven. If the following screen appears, the configuration is successful.
找到Maven
config
Configuration files in subdirectories of the installation directorysettings.xm打开:
settings.xml
Find the node in the file and <mirrors>
add the Alibaba Cloud mirror source (the domestic website downloads resources faster)
Specific code:
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
You can Maven
create a local warehouse repository
directory
Modify the idea
Open the idea Settings
window, find it in the left panel Maven
, IDEA's Maven will change it to our meven