什么是pom? pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和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详解
|