SAGARFIVE

Tutorials

4.1 Maven Life cycle

(i) Default or build Life cycle :  

  • This is used to build the application,
  • Phases Build Lifecycle : compile → test compile → test → package → integration-test → verify → install → deploy

(ii) Clean Life cycle :

  • Maven clean is a plugin as the name suggests, that approaches to clean the files and directories generated by Maven at the time of its build.
  • The plugin removes the target folder that contains all the class files, docs, JAR files.
  • Phases of clean Lifecycle : pre-clean, clean, post-clean

(iii) Site Life cycle :

  • This is used to generate the site documentation of the project.
  • Phases of a Site Life Cycle : pre-site, site, sost-site, site-deploy