Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Apache Maven Tutorial : Manage Java Dependencies Like a Pro
Rating: 4.4 out of 5(190 ratings)
5,974 students

Apache Maven Tutorial : Manage Java Dependencies Like a Pro

Learn Maven :Start managing and developing your projects like professionals.Create Awesome Test Automation Frameworks
Created byTech Planet
Last updated 9/2020
English
English [Auto],

What you'll learn

  • We will create a maven project in Java using Maven Archetypes
  • Compiling Maven Projects from command line
  • Working on Maven project from eclipse
  • Understanding POM and maven terminologies
  • Industry Best Practices
  • Running tests from maven on command line

Course content

1 section6 lectures50m total length
  • Introduction to maven and why we need it ?6:40

    Maven is a software project management tool that handles dependencies, builds, and documentation from a central repository, letting you specify dependencies and automatically download jars.

  • Apache Maven Set Up and First Maven Project in Java11:41

    Install maven on your system, set the environment variables, and verify the installation; then create your first maven project in eclipse using a quickstart template, configuring groupId, artifactId, and version.

  • Understanding POM.xml and downloading project dependencies12:53

    Understand how to use maven to manage java dependencies by configuring pom.xml, downloading selenium and other jars from a maven repository, and running tests with the surefire plugin.

  • Compiling and Running tests from command line using surefire plugin7:07

    Use the maven surefire plugin to compile and run tests from the command line with mvn clean and mvn test; ensure test classes end with test to run all tests.

  • Triggering testng.xml from maven5:06

    Integrate the maven surefire plugin with testng.xml by adding a configuration tag to define which xml test suites to execute, and run selective tests to verify outcomes.

  • Selective Suite selection using profiling in maven7:16

    Select and run specific test sets in Maven by creating regression and sanity profiles, and executing mvn test with -P regression or -P sanity to target the desired suite.

Requirements

  • Internet Connection to download maven dependencies
  • Very Basic knowledge of testng or junit and selenium

Description

Maven is the most popular Java Dependency Management Tool.

This course will enable you to build a maven project from scratch and configure all the dependencies required for a project

We will discuss how to run various test from  command line in maven

We will discuss how to trigger testng xmls using maven

We will be talking about various terminologies used in maven project

Who this course is for:

  • Automation Testers who want to develop automation frameworks and learn maven
  • Beginners who wants to learn build tools like Apache Maven