1. 程式人生 > >Maven name與artifactId 區別

Maven name與artifactId 區別

name:

The full name of the project.

artifactId:

The identifier for this artifact that is unique within the group given by the group ID.An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven for a project include: JARs, source and binary distributions, and WARs.

也就是說 name只是一個名稱,專案的全名稱,可以是大寫空格多個詞,比如Spring Boot Starter Parent,而artifactId是用來區分同一個groupId下的子專案,比如前面對應的是spring-boot-starter-parent

但是一般是實際使用中,我們可以把name的值賦成和artifactId一樣的:)