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