Article directory
- 1. Maven
-
- 1.1 What is Maven
- 1.2 The use of Maven
-
- ① Open IDEA -> New Project
- ② Select Maven all the way to Next
- ③ Search Mysql in the Maven repository
- ④ Find the version number that matches your own MySQL.
- ⑤ Copy it to pom.xml and wrap it with the dependencies tag.
- ⑥ Find Maven on the right side of IDEA and click Refresh
- ⑦ Test code in Java. The following indicates success.
- ⑧ Packing
- ⑨ When you see BUILD SUCCESS, it means the packaging is successful
- 1.3 Explain the project in Maven.
1. Maven
1.1 What is Maven
Maven is a project construction tool. As long as the created project follows the Maven specification, Maven can be used for management: compilation, packaging, etc.
1.2 The use of Maven
① Open IDEA -> New Project
② Select Maven all the way to Next
③ Search Mysql in the Maven repository
④ Find the version number that matches your own MySQL.
⑤ Copy it to pom.xml and wrap it with the dependencies tag.
⑥ Find Maven on the right side of IDEA and click Refresh
After it is not marked in red, it means that it has been downloaded.
⑦ Test code in Java. The following indicates success.
⑧ Packing
If you want to type other packages, you can <packaging>war</packaging>
enter it here.
⑨ When you see BUILD SUCCESS, it means the packaging is successful
The target directory is the packaged jar package
. If you want to change the name, you can use these tags
1.3 Explain the project in Maven.