Maven build commands through command prompt - Java
When you are building a project through a command prompt you have go to project root folder and then then run maven using below commands.
Clean project with below command.
mvn clean
Clean and build project with below command.
mvn clean install
Clean and build project with below command with more logs.
mvn clean -X install
Clean and build project with below command. But this command skips test scripts of the code.
mvn clean install -Dmaven.test.skip=true
Cheers.
Comments
Post a Comment