Maven installation and download
The maven website
Download the Maven zip package. The source file structure of Maven is very simple. Configure mvn. CMD in the bin directory to environment variables
Check whether the installation is successful
Open CMD panel and enter MVN -v
Use of Maven in IDEA
Select Setting in IDEA and select maven option to configure.
Central warehouse setup
By default, Maven downloads required JAR packages from foreign servers. However, downloading from foreign servers is time-consuming and requires high network requirements in China. The best way is to change the address of the central warehouse to the domestic warehouse provided by Ali Cloud. Ali Cloud warehouse is free and the best warehouse in China. Add the following code to your Maven configuration. Maven only wakes up and downloads from foreign servers when the required package cannot be downloaded from Ali’s cloud repository. Ali Cloud Central Warehouse
<repositories>
<repository>
<id>aliyun</id>
<name>aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
</repositories>
Copy the code
How to know the groupId and artifactId of the required package?
Maven relies on queries to search directly.