Skip to content

Instantly share code, notes, and snippets.

@UtkarshYadav01
Created January 4, 2025 23:58
Show Gist options
  • Save UtkarshYadav01/cdd871541a905362813f375ac49753a1 to your computer and use it in GitHub Desktop.
Save UtkarshYadav01/cdd871541a905362813f375ac49753a1 to your computer and use it in GitHub Desktop.
Maven Build Lifecycle Phases
==========================
Maven Build Lifecycle Phases
==========================
1. validate
- Validate the project is correct and all necessary information is available.
2. compile
- Compile the source code of the project.
3. test
- Test the compiled source code using a suitable unit testing framework.
These tests should not require the code to be packaged or deployed.
4. package
- Take the compiled code and package it in its distributable format, such as a JAR.
5. verify
- Run any checks on results of integration tests to ensure quality criteria are met.
6. install
- Install the package into the local repository, for use as a dependency in other projects locally.
7. deploy
- Done in the build environment, copies the final package to the remote repository
for sharing with other developers and projects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment