mvn Command Examples

Apache Maven: build and manage Java-based projects. More information: https://maven.apache.org.

mvn compile

mvn package

mvn package -DskipTests

mvn install

mvn clean

mvn clean package

mvn clean -P {{profile}} package

mvn exec:java -Dexec.mainClass="{{com.example.Main}}" -Dexec.args="{{argument1 argument2 ...}}"