what maven is.
A: Maven is a tool for project management and integration. MAVEN provides a complete set of build lifecycle frameworks for developers. The development team does not have to spend much time automating the infrastructure configuration of the project, because MAVEN uses a standard directory structure and a default build lifecycle. Maven makes it easier for developers to work when creating reports, checking, building, and testing automatic configuration.
what maven can do:
* Build
* Document Generation
* Report
* Dependent
* SCMs (software configuration Management)
* Release
* Distribution
* Mailing List
about Pom.xml:
The MAVEN engineering structure and content are defined in Pom.xml, and the full name is Project Object Moduel.
The contract is better than the configuration:
maven uses conventions rather than configurations, meaning that developers don't have to create the build process themselves.
When you create a MAVEN project, MAVEN creates the default engineering structure, and the developer only needs to place the configuration file reasonably, without any configuration in the Pom.xml.
For example, the following table shows the default source code, configuration file, and the default storage location for compiled files:
Configuration Items |
Default value |
Source Code |
/src/main/java |
Resources |
/src/main/resources |
Tests |
/src/test |
Complied byte codes |
/target |
Distributable Jars |
/target/classes |