groupId和artifactId指的是什么?

网上各种回答,感觉还是没有说清楚。

GroupId:

对应Java里面包名。如com.yang.dao, com.yang.controller,com.yang.service等 ,类似于你的身份证地址,xx省xx市,很长的后缀,但有规则。

ArtifactId:

类似于Java的模块名或者项目。也类似于身份证上你的名字,想咋取咋取,

小结:

GA坐标说明了你是在那里的那个谁,即xx省xx市的张三。

note:身份证上的名字可能重复,存在冲突,但加上groupId,是不是就会好很多了,特别是在软件领域。你这样想的,Maven取名的那个人也是这样想的。就是这么简单,不要想复杂了。

英文解答:

The main difference between groupId and artifactId in Maven is that the groupId specifies the id of the project group while the artifactId specifies the id of the project.

It is required to use third party libraries when developing a project. The programmer can download and add these third-party libraries to the project, but it is difficult to update them later. Maven provides a solution to this issue. It helps to include all the dependencies required for the project. Moreover, the programmer can specify the required dependencies in the POM.XML file. It has the configuration information to build the project. Furthermore, this file consists of several XML elements, and two of them are groupId and artifactId. example groupId : com.test.java (similar to package name) artifactId : javaproject(project or module name)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值