This article mainly introduces in detail the first step of WeChat development preparation, Maven warehouse management of new WEB projects, which has certain reference value. Interested friends can refer to
in our In project development, we often encounter situations where the project cycle is very long and the project relies on a lot of jar packages. Therefore, we often introduce Maven plug-ins into the project and establish Maven projects. Today I will record a simple process of establishing a Maven project. !
(1) Establishment of Maven basic project (Prerequisite: Maven plug-in has been integrated into your development tools)
Create a new project——> Create a Maven project—— >Select dependencies——> Just name the project and so on. The general process is as follows:
#What should be noted here is [the third picture] and [the fourth picture]. The fourth picture adds an option to change the project name. For simple modifications, refer to the picture [fifth picture]. Those who have strict requirements on the project name can use this as a reference!(2) Maven project configuration
Some people may ask why there is a Maven project configuration item when the Maven project has been established before. The person who asked this question will understand the importance of this step when he has created a project and opened the project directory. First, let’s take a look at the directory structure of our newly created project as follows: This is completely different from the project directory structure we see in daily development. Could it be that our Maven project was created wrong? There is no doubt that our project creation is correct. Let's configure the project to achieve The directory structure we want: Right-click on the project——>Build Path——>Libraries Modify the Jar dependency version. The general process is as follows: At this point, the Maven project structure is the directory structure we need, and we can incorporate it into the development process! If you have any questions during this process, you can leave a message and communicate together. Thank you for reading!The above is the detailed content of Detailed explanation of the steps for Maven warehouse management and new WEB project developed by WeChat. For more information, please follow other related articles on the PHP Chinese website!