<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- 指定当前pom的版本 -->
<modelVersion>4.0.0</modelVersion>
<!-- I. Coordinate information of the project -->
< groupId > Reverse company website + project name </ groupId >
< artifactId > Project name + module name </ artifactId >
<!--
first o: major version: no.
Second 0: branch version number
The third 0: minor version number
Version type division: 1.SNAPSHOT (snapshot)
2.alpha (internal test)
3.beta (public beta)
4.Release (stable)
5.GA (formal)
-->
< version > 0.0.1SNAPSHOT </ version >
<!-- maven project packaging method: default: jar, can specify war, zip, pom- -->
< packaging ></ packaging >
<!-- project description name -->
< name ></ name >
<!-- Project address -->
< url ></ url >
<!-- Project description -->
< description ></ description >
<!-- Developer information -->
< developers ></developers>
<!-- License Information -->
< licenses ></ licenses >
<!-- Organization Information -->
< organization ></ organization >
<!--二、依赖列表-->
<dependencies>
<!--依赖坐标-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<type></type>
<!-- 依赖范围:test-->
<scope>test</scope>
<!--Set whether the dependency is optional: true/false The default is the latter-->
< optional > false </ optional >
<!-- Exclude dependencies transitive list -->
< exclusions >
<!-- Exclude some unwanted dependencies -->
< exclusion ></ exclusion >
</ exclusions >
< / dependency >
</ dependencies >
<!--三、依赖的管理:定义父模块的jar包便于子模块的继承-->
<dependencyManagement>
<dependencies>
<dependency></dependency>
</dependencies>
</dependencyManagement>
<!--四、插件列表:需指定插件的坐标-->
<build>
<plugin>
<groupId></groupId>
<artifactId></artifactId>
<version></version>
</plugin>
</build>
<!--五、用于子模块对于父模块pom的继承-->
<parent></parent>
<!--六、指定多个模块,可同时编译等操作-->
<modules></modules>
</project>
maven pom.xml tag properties
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325867805&siteId=291194637
Recommended
Ranking