What is the difference between artifactId and grou

2019-03-24 17:50发布

How would you explain it to a newbie web developer or programmer with some real world organization example (like say facebook company or Google company)?

1条回答
贼婆χ
2楼-- · 2019-03-24 18:35

From maven.apache.org, Naming Conventions:

artifactId is the name of the jar without version. If you created it then you can choose whatever name you want with lowercase letters and no strange symbols. If it's a third party jar you have to take the name of the jar as it's distributed. eg. maven, commons-math

groupId will identify your project uniquely across all projects, so we need to enforce a naming schema. It has to follow the package name rules, what means that has to be at least as a domain name you control, and you can create as many subgroups as you want. Look at More information about package names. eg. org.apache.maven, org.apache.commons

查看更多
登录 后发表回答