What is Maven?
maven is a project to build , dependency management tools , the use of maven tools can be automated to build , test , package and release the project , improve development efficiency
Project construction
Refers to the process of transforming source code, configuration files, resource files, etc. into applications or libraries that can be run or deployed
Project build process: cleanup, compile, test, report, package, deploy
Packing method.
- Java project to hit the jar package
- Web project typing war package
Click to view code
war package packaging plugin and jdk version does not match: need to add code in the
<build>
<! -- jdk17 and war package version plugins don't match -->
<plugins>.
<plugin>
<groupId> </groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin> </plugins>
</plugins>
</build>.
- Pom does not participate in packaging, when creating a parent project, it will automatically generate pom packaging.
IDEA-based management of mavne