Maven technology

Danjiangkou Reservoir's water resources dispatching management system uses Maven technology to construct and manage the project. When creating a new project with development tools, when the project relies on a third-party jar package, under normal circumstances, we copy the required jar package to the project's classpath. However, when we import a specific jar package into the project, this jar package may depend on other jar packages, and other jar packages may depend on more jar packages, resulting in " ClassNotFoundException" error. In addition, in the ordinary software development process, in addition to writing the main code, it also takes a lot of time to build the project, including repetitive and complicated tasks such as compilation, testing, document generation, packaging, and deployment.
In order to avoid the above problems, Maven technology needs to be used when developing the project . Maven is one of Apache's excellent open source projects. It is a project management tool based on the java platform, mainly used for project construction, dependency management, etc. In the project construction, Maven can automatically help us build the project. There is no need to repetitively enter commands as before. Just enter some simple commands to complete the original repetitive and complex project construction work. In dependency management, when the project depends on a third-party jar package, after Maven manages the project, you only need to add directly dependent libraries to the pom.xml file, and Maven will automatically introduce other indirect dependent libraries into our project. Medium; when the directly dependent library in the pom.xml file is deleted or the version is upgraded, Maven will automatically eliminate redundant jar packages and complete the upgrade of the dependent jar package version.

Guess you like

Origin blog.csdn.net/qq_42918433/article/details/113928195