maven GroupId和ArtifactID

在网上看到的,记录一下:

GroupId和ArtifactId被统称为“坐标”是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找。

  GroupId一般分为多个段,这里我只说两段,第一段为域,第二段为公司名称。域又分为org、com、cn等等许多,其中org为非营利组织,com为商业组织。举个apache公司的tomcat项目例子:这个项目的GroupId是org.apache,它的域是org(因为tomcat是非营利项目),公司名称是apache,ArtifactId是tomcat。
  
  比如我创建一个项目,我一般会将GroupId设置为cn.mht,cn表示域为中国,mht是我个人姓名缩写,ArtifactId设置为testProj,表示你这个项目的名称是testProj,依照这个设置,在你创建Maven工程后,新建包的时候,包结构最好是cn.zr.testProj打头的,如果有个StudentDao[Dao层的],它的全路径就是cn.zr.testProj.dao.StudentDao

原文地址:https://www.cnblogs.com/linwenbin/p/12009992.html

时间: 2024-08-03 09:44:21

maven GroupId和ArtifactID的相关文章

maven groupid与artifactid

groupid和artifactId被统称为"坐标"是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找. groupId一般分为多个段,这里我只说两段,第一段为域,第二段为公司名称.域又分为org.com.cn等等许多,其中org为非营利组织,com为商业组织.举个apache公司的tomcat项目例子:这个项目的groupId是org.apache,它的域是org(因为tomcat是非营利项目),公司名称是apache

Maven中groupId和artifactId的含义

groupId和artifactId被统称为"坐标"是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找.groupId是项目组织唯一的标识符,实际对应JAVA的包的结构,是main目录里java的目录结构.artifactId就是项目的唯一的标识符,实际对应项目的名称,就是项目根目录的名称. groupId一般分为多个段,这里只说两段,第一段为域,第二段为公司名称.域又分为org.com.cn等等许多,其中org为非营利

maven中的groupId和artifactId 区分

原文地址:https://blog.csdn.net/snowin1994/article/details/53024871/ groupid和artifactId被统称为"坐标"是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找. groupId一般分为多个段,这里我只说两段,第一段为域,第二段为公司名称.域又分为org.com.cn等等许多,其中org为非营利组织,com为商业组织.举个apache公司的tomcat

maven中pom.xml中配置整理: groupId、artifactId、parent、dependency、dependencyManagement区别

1 <groupId>com.mycompany.commonmaven</groupId> 2 <artifactId>commonmaven</artifactId> 3 <version>0.0.1-SNAPSHOT</version> 4 <packaging>jar</packaging> 5 <name>common_maven</name> groupId 定义了项目属于哪

groupID和artifactID填什么

Maven的pom.xml文件中的groupID和artifactID: GroupID是项目组织唯一的标识符,实际对应JAVA的包的结构,是main目录里java的目录结构. ArtifactID就是项目的唯一的标识符,实际对应项目的名称,就是项目根目录的名称. 一般GroupID就是填com.leafive.test这样子. 原文地址:https://www.cnblogs.com/zhangwuji/p/9102529.html

maven中GroupID 和ArtifactID怎么写

原文地址:http://www.cnblogs.com/panxuejun/p/6184072.html groupId :the unique identifier of the organization or group that created the project artifactId :unique base name of the primary artifact being generated by this project  GroupID 是项目组织唯一的标识符,实际对应JA

查找maven中的groupId,artifactId,version等信息的方式

可以查看:http://search.maven.org/   输入要想找的东西 

groupId 和 artifactID 解释

maven 原始:https://maven.apache.org/guides/mini/guide-naming-conventions.html Guide to naming conventions on groupId, artifactId and version groupId will identify your project uniquely across all projects, so we need to enforce a naming schema. It has

GroupId和ArtifactId

<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --><dependency>    <groupId>org.springframework</groupId>    <artifactId>spring-webmvc</artifactId>    <version>4.3.1.RELEASE</version&g