In Maven, there are three main phases of the build process that are commonly used: clean, compile, and package.
clean
compile
package
clean: This phase removes all previously compiled classes and other generated files from the target directory.
mvn clean
compile: This phase compiles the source code of the project and generates the class files.
mvn compile
package: This phase packages the compiled classes and resources into a distributable format, such as a JAR or WAR file.
mvn package
Last updated 2 years ago