Tuesday, 31 December 2024

Maven lifecycle

 

✅ Key Phases in Default Lifecycle (in order):

PhaseWhat it does
validateCheck the pom.xml and project structure is correct
compileCompile the .java files to .class files
testRun unit tests using JUnit/TestNG
packagePackage compiled code into a .jar or .war
verifyRun any checks to verify the package is valid
installInstall the .jar to your local Maven repo (~/.m2/repository)
deployUpload the package to a remote repo (like Nexus, Artifactory – for sharing)

No comments:

Post a Comment