pom文件打包的实用程序有哪些?可以打包的价值是什么?它们的含义是什么?

时间:2018-10-29 10:06:16

标签: maven

有一个pom文件,它包含一个打包字段

<!-- The Basics -->
      <groupId>...</groupId>
      <artifactId>...</artifactId>
      <version>...</version>
      <packaging>...</packaging>
      <dependencies>...</dependencies>
      <parent>...</parent>
      <dependencyManagement>...</dependencyManagement>
      <modules>...</modules>
      <properties>...</properties>

1 个答案:

答案 0 :(得分:1)

包装定义您要构建的工件类型,例如jar或war(核心包装的完整列表:What are all the default maven packing types?)。

它会影响正在运行的Maven生命周期,尤其是代码的编译和打包方式。