Shell - Java - How-To with Maven

20/01/2021 One-minute read

There is a lot of common daily tasks that I need to execute with Maven. This post is just a cheatsheet with most of them.

Update version in pom.xml globally (avoiding backup of original files):

mvn version:set -DgenerateBackupPoms=false -DnewVersion=x.y.z

Run Spring Boot application

mvn spring-boot:run

Clean, compile and run tests

mvn clean install

Clean, compile without run tests

mvn clean install -Dmaven.test.skip=true

Posts in this Series