✅ Key Phases in Default Lifecycle (in order):
Phase | What it does |
---|---|
validate | Check the pom.xml and project structure is correct |
compile | Compile the .java files to .class files |
test | Run unit tests using JUnit/TestNG |
package | Package compiled code into a .jar or .war |
verify | Run any checks to verify the package is valid |
install | Install the .jar to your local Maven repo (~/.m2/repository ) |
deploy | Upload the package to a remote repo (like Nexus, Artifactory – for sharing) |
No comments:
Post a Comment