August 2018
Intermediate to advanced
524 pages
14h 45m
English
Dependencies also play an important role in the POM file. The previous project did not have any dependencies. This time we will use JUnit, so we depend on JUnit. Dependencies are defined in the pom.xml file using the dependencies tag. For example, the bubble sort module contains the following piece of code:
<dependencies>
<dependency>
<groupId>packt.java189fundamentals</groupId>
<artifactId>SortInterface</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>