|
什么是pom? pom作為項目對象模型。通過xml表示maven項目,使用pom.xml來實現(xiàn)。主要描述了項目:包括配置文件;開發(fā)者需要遵循的規(guī)則,缺陷管理系統(tǒng),組織和licenses,項目的url,項目的依賴性,以及其他所有的項目相關因素。
pom.xml 配置文件 - <project>
- <parent>
- ...
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
-
- <groupId>...</groupId>
- <artifactId>...</artifactId>
- <version>...</version>
- <packaging>...</packaging>
-
- <scm>
- ...
- </scm>
-
- <dependencies>
- ...
- </dependencies>
-
- <dependencyManagement>
- ...
- </dependencyManagement>
-
- <modules>
- ...
- </modules>
-
- <properties>
- ...
- </properties>
-
-
- <build>
- ...
- </build>
- <reporting>
- ...
- </reporting>
-
-
- <name>...</name>
- <description>...</description>
- <url>...</url>
- <inceptionYear>...</inceptionYear>
-
- <licenses>
- </licenses>
-
- <organization>
- </organization>
-
- <developers>
- </developers>
-
- <contributors>
- </contributors>
-
-
- <issueManagement>
- </issueManagement>
-
- <ciManagement>
- </ciManagement>
-
- <mailingLists>
- </mailingLists>
-
- <prerequisites>
- </prerequisites>
-
- <repositories>
- </repositories>
-
- <pluginRepositories>
- </pluginRepositories>
-
- <distributionManagement>
- </distributionManagement>
-
- <profiles>
- </profiles>
- </project>
maven POM.xml詳解
參考推薦: Apache Maven(官方) maven 配置篇 之pom.xml
maven POM.xml詳解
|