Maven Tutorial
Introduction to Maven Installation and environment configuration Maven settings Standard directory structure in Maven project command line IntelliJ IDEA Super POM and Parent POM Understanding POM.xml file Declaring maven dependencies Dependency management using repositories in Maven Adding jar file as a dependency in Maven Maven archetypes Maven build life cycle, phases and goals Generating project API documentation Generating Site documentation for a project Installing artifacts in local repository Deploying the artifact on remote repository Maven plug-ins surefire plugin compiler plugin Profiles in MavenExecuting Maven phases and goals through command prompt Maven command line optionsexec-maven-plugin usage Skipping tests in Maven Test execution report in Mavendependencies 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!!