Basic To Advanced Selenium Java Full Course - Session 5 - Maven Build Life Cycle, Phases & Plugins
What is Maven? Build Automation tool for Java projects It addresses 2 aspects of building software How software is built and its dependencies POM.xml file describes the software project being built, its dependencies, build order, directories and plugins It dynamically downloads Java libraries and Maven Plugins from Central Repository and stores in a local repository It is built around the central concept of Build lifecycle Three built in build lifecycles: Default lifecycle handles project deployment Clean lifecycle handles project cleaning Site lifecycle handles creation of project’s site documentation Maven Build Phases Each build lifecycle comprises of different build phases Each build phase represents a stage in the lifecycle Default lifecycle contains the following phases Validate validates the project Compile compile the source code Test run unit tests Package package the compile code into JAR Verify run integration tests Install install package into local repository Deploy copy the final package to remote repository for sharing with other projects Maven Plugins Build Phase is made up of Plugin Goals A Plugin goal represents a specific task which contributes to building and managing a project Example – Maven Surefire plugin is used to run unit tests. It can be invoked by calling the test phase of the build lifecycle (mvn test)
Download
0 formatsNo download links available.