groupid和artifactid是什么意思?

时间:2015-10-01 07:16:06

标签: maven

我是maven的新手。我了解了pom.xml的用法。但我无法弄清楚下面的代码中groupId和artifactId的含义是什么?

<dependencies>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>3.0.0.RELEASE</version>
    <scope>runtime</scope>
  </dependency>
</dependencies

1 个答案:

答案 0 :(得分:0)

这些ID构成了工件的坐标(与版本,类型和分类器一起)。这对于识别要包含在项目中的依赖项的工件是必要的。然后从本地或远程存储库中提取工件,并将其添加到项目的类路径中。

相关问题