Install and configure Maven

Table of contents

Download Maven to directory

 Configure maven environment variables

Modify the idea


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 -versionto view the version and installation location of Maven. If the following screen appears, the configuration is successful.

找到MavenconfigConfiguration files in subdirectories of the installation directorysettings.xm打开:

  

settings.xmlFind 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 Mavencreate a local warehouse repository
directory

Modify the idea

Open the idea Settingswindow, find it in the left panel Maven, IDEA's Maven will change it to our meven

Guess you like

Origin blog.csdn.net/hollow_future/article/details/129009635