Maven Dependency

  • Dependencies give groupId, artifactId, version, scope, etc
  • groupId: What organization is publishing this?
  • artifactId: What artifact do you want from this group?
  • version: Which version of the library?
  • scope: How will it be used?
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>30.1-jre</version>
    <scope>compile</scope>
</dependency>

9 / 21