Maven getting started Tutorial: How to fill in GroupId and ArtifactId, mavenartifactid
How to fill in GroupId and ArtifactId
Groupid and artifactId are collectively referred to as "coordinates" to ensure the uniqueness of the project. If you want to get your project to the maven local repository, to find your project, you must search for the two IDs.
GroupId is generally divided into multiple segments. Here I only talk about two segments. The first segment is the domain, and the second segment is the company name. Domain is divided into org, com, cn, and so on. Among them, org is a non-profit organization, and com is a commercial organization. Take an apache tomcat project as an example: the groupId of this project is org. apache, and its domain is org (because tomcat is a non-profit Project). The company name is apache and artigactId is tomcat.
For example, if I create a project, I usually set the groupId to cn. zr, cn indicates that the domain is China, zr is my personal name abbreviation, and artifactId is set to testProj, indicating that your project name is testProj. According to this setting, your package structure is preferably cn. zr. testProj headers. If there is a StudentDao, its full path is cn. zr. testProj. dao. studentDao