Maven getting started Tutorial: How to fill in GroupId and ArtifactId, mavenartifactid

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.