1. Maven installation and configuration
1. First download the latest version of the Maven program from the Maven official website ;
2. Unzip the file to your own directory
3. Create a new environment variable MAVEN_HOME, the assignment is the directory just decompressed
4. Edit the environment variable Path and append %MAVEN_HOME%\bin\;
5. Now that the maven installation and configuration have been completed, now check whether the installation is successful on the command line
6. Configure Ali remote warehouse
<mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> </mirrors>
2. Create a web project using Maven in IDEA
Create a Maven project and check Create from archetype
then next
then next
Next, click Finish, wait for maven to download the required dependencies, and the project is ready
It has now been created.
If you need to build SSH or SSM framework, it is recommended to read the following articles
Java Framework Basic Tutorial: Using Maven to Build an SSH Project (Idea)
Java Framework Basic Tutorial: Using Maven to Quickly Build an SSM Project (Idea)