Maven name与artifactId 区别[通俗易懂]

name:Thefullnameoftheproject.artifactId:TheidentifierforthisartifactthatisuniquewithinthegroupgivenbythegroupID.Anartifactissomethingthatiseitherproducedorused

大家好,又见面了,我是你们的朋友全栈君。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.net/126783.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号