Parse the configuration file pom.xml

Parameter meaning

1. gav – groupId,artifictId,version:

  • GroupId – Unique identifier of a project or organization that configures the absolute path of incoming packages.
  • ArtifactId – Generic name of the package.
  • Version – Package version.
  • Package – Packaging mechanism, usually jar, WAR, RAR, etc.

2. Scoup specifies the dependency range of the current package, including compile, provide, Runtime, test, and system.

  • Complile – The package’s default scope. Dependencies are needed during compilation, running, and testing, and therefore packaged in the project.
  • Provide – Dependencies are required during compilation and testing. Used when provided by the JDK or an external container.
  • Runtime – when running or testing is required, such as a JDBC driver.
  • Test – Dependencies are required when testing. Junit, for example, will not be packaged.
  • System – Local dependency, which provides the path of the jar package of the local system. Therefore, it is generally not used.

3. Exclusion of dependencies

4. Properties Define constants

5. Prerequisites for the Prerequisites for building environment of the Prerequisites project

6. Build a project

  • SourceDirectory/testSourceDirectory is relative to the source and test source paths of POM.xml. Automatically join when the project is built.
  • OutputDirectory/testOutputDirectory Directory for storing compiled application files and test code class files.
  • Resources/testResources Resources related to the project.

7. The relative path of the module subproject, relative to POM.xml

8. Type Indicates the dependency type