
Scenario 1: Let's say our project requires third-party dependencies such as Druid connection pooling, MYSQL database driver and Jackson JSON processing. Then we can write the information of the desired dependencies to the Maven project configuration file, Maven will automatically download and copy these dependencies to the project, no need to import jar packages and manage the jars yourself.
Scenario 2: The project is finished developing, we want to deploy to the server as a war, using the maven build command can be quickly packaged! Save a lot of time!