Maven project architecture management tool
Purpose: to help automatically import and configure the Jar package
Core idea: convention is greater than configuration
- There are constraints, don't violate (Maven will stipulate how you should write Java code, and you must follow this specification)
Configure environment variables
1. 1 Cloud mirroring
Function: Speed up downloading (Alibaba Cloud mirroring is recommended in China)
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
1. 2 Local warehouse
In the local warehouse, remote warehouse;
<localRepository>C:\Maven\apache-maven-3.6.3\maven-repo</localRepository>
1. 3 Use Tomcat in IDEA
1.4 Use Maven in IDEA
File structure:
pom.xml is the core configuration file of Maven: