Cover image for πŸ”₯ Learn Maven Lifecycle Phases in 7 min(with CheatSheet Download)

πŸ”₯ Learn Maven Lifecycle Phases in 7 min(with CheatSheet Download)

promode profile image Pramod Dutta Updated on ・2 min read

Hey BugHunters, In this video we are going to discuss Maven Lifecycle Tutorial, What is Maven, Maven Goals, Phases in depth.

πŸ”₯ Download Maven CheatSheet - https://scrolltest.com/ra/day11

 Rest Assured Tutorial

βœ… What is Maven?
Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

βœ… What is Maven Build Lifecycle?

  • validate - validate the project is correct and all necessary information is available

  • compile - compile the source code of the project
    test - test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed

  • package - take the compiled code and package it in its distributable format, such as a JAR.

  • verify - run any checks on results of integration tests to ensure quality criteria are met

  • install - install the package into the local repository, for use as a dependency in other projects locally

  • deploy - done in the build environment, copies the final package to the remote repository for sharing with other developers and projects.

βœ… What is Maven Build Goals
A build phase is made up of a set of goals. Maven goals represent a specific task that contributes to the building and managing of a project.

Sometimes, a maven goal is not bound to a build phase. We can execute these goals through the command line.

The syntax to execute a goal is:
$ mvn plugin-prefix:goal
$ mvn plugin-group-id:plugin-artifact-id[:plugin-version]:goal
Here is an example to execute the dependency tree goal from the command line. It’s not part of any build phases.

mvn dependency:tree

πŸ”₯ Download the following dependencies to Maven Pom

api #apitesting #restassured #rest #restapi #restassuredtutorial

This is Day 10 of the 30 days of API Testing challenge Series. Where will learn the Basics before jumping to API Automation.

πŸš€ All 30 Days Task - https://scrolltest.com/30days/restassured
πŸ“Œ Join 30 Days Challenge Updates - https://scrolltest.com/tta
πŸŽ“ Free Automation MasterClass - https://thetestingacademy.com
πŸ“š REST API testing with Python - https://masterapitesting.com

Be sure to subscribe for more videos like this!


Posted on by:

promode profile

Pramod Dutta


Lead Automation Expert || Founder of TheTestingAcademy.com || Youtube at TheTestingacademy || Udemy Teacher. || scrolltest.com


markdown guide