天天看點

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一樣的:)

釋出者:全棧程式員棧長,轉載請注明出處:https://javaforall.cn/126783.html原文連結:https://javaforall.cn