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 projectGroupID 是项目组织中唯一的标识符,对应Java包结构,在idea中看到的是main目录里java的目录结构。
ArtifactID是项目的唯一的标识符,实际对应项目的名称(就是idea中工程的名字),就是项目根目录的名称。
例子:
<parent> <artifactId>app-web</artifactId> <groupId>com.chz.learn</groupId> <version>1.0.3-SNAPSHOT</version> </parent>groupId
定义了项目属于哪个组,如果上面的例子,可以看做公司名为chz,其中包含了一个项目就是learn,那么groupId就应该是com.chz.learn.
artifacted
也是当前工程的名字,定义maven项目在组中唯一的ID,如上所示:app-web。
version
指定app-web项目的当前版本,SNAPSHOT意为快照,说明该项目还处于开发中,是不稳定的版本。