1. Download and install Maven
You can download it from the official website. Before downloading, make sure that the JDK has been installed and configured on the computer.
2. Configure Maven environment variables
Add M2_HOME to the environment variable: point to the maven installation directory
Add a value to the path environment variable: point to the bin folder in the maven installation directory
3. Test
Open the command line (ie cmd) and enter mvn -v
If the maven version information appears, the maven configuration is complete
4. Create a new local warehouse
Create a folder anywhere
Open conf/settings.xml in the maven directory
Line 55 adds <localRepository> absolute path to local warehouse</localRepository>
5, IDEA configuration maven
file-settings search box to find maven configuration local maven directory
6, you can start using