1. Maven’s core concepts: Use Maven well and understand these concepts

① PoM: A file name is pom.xml. PoM translates to project object Model. Maven uses a project as a model. Control the maven build project process and manage JAR dependencies.

2. Convention directory structure: Maven project directories and file locations are specified.

Coordinates: is a unique string used to represent resources.

Dependency management: Manage your projects using JAR files

⑤ Warehouse management (understanding) : where your resources are stored

Maven tool is the process of building projects, that is, the life cycle.

⑦ Plugins and goals (understand) : Plugins are the tools used to perform Maven builds

Today inheritance

Pet-name ruby polymerization

2. Install and configure Maven tools.

  1. You need to download the Maven installation package from the Maven official website

    Website:maven.apache.org/

  1. Decompress the installation package to a directory, not a Chinese directory.
  • Subdirectory bin: executes the program, mainlymvn.cmd
  • conf: Configuration file of the Maven toolsettings.xml
  1. Configuring environment Variables
  • In the system environment variable, specify oneM2_HOMEMAVEN_HOMESpecifies that its value is the Maven tool installation directory,binPrevious directory
  • Create a value in system environment variables



M2_HOME=D:\apache-maven-3.61.
Copy the code
  • Then put theM2_HOMEorMAVEN_HOMEInto thePathIs added before all paths%M2_HOME%\bin;
  1. Verify that the new command line is executedmvn -v