dependencies in Maven

You need to specify the dependency in POM file. For example – if you want to run JUnit tests, you will have to define below JUnit dependency in your POM.xml
 
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
All right – so we declared the dependency in POM.xml now what next? You don’t need to do anything apart from declaring the dependency. Maven will take control from there and get the JUnit artifact for you. If you are not sure which version of JUnit to use, you can visit https://mvnrepository.com/ and find out the group name, artifact name and version for JUnit. Similarly you can search for various artifacts on https://mvnrepository.com/ or https://search.maven.org/.

Web development and Automation testing

solutions delivered!!