
mvn
List of commands for mvn:
-
mvn:tldr:0268a mvn: Run a class with a main method.$ mvn exec:java -Dexec.mainClass="${com-example-Main}" -Dexec.args="${arg1 arg2}"try on your machineexplain this command
-
mvn:tldr:272a9 mvn: Delete build artifacts from the target directory.$ mvn cleantry on your machineexplain this command
-
mvn:tldr:2b874 mvn: Compile and package the compiled code in its distributable format, such as a `jar`.$ mvn packagetry on your machineexplain this command
-
mvn:tldr:40c94 mvn: Install the built package in local maven repository. (This will invoke the compile and package commands too).$ mvn installtry on your machineexplain this command
-
mvn:tldr:45f59 mvn: Compile and package, skipping unit tests.$ mvn package -DskipTeststry on your machineexplain this command
-
mvn:tldr:d252c mvn: Clean and then package the code with a given build profile.$ mvn clean -P${profile} packagetry on your machineexplain this command
-
mvn:tldr:ea9d9 mvn: Do a clean and then invoke the package phase.$ mvn clean packagetry on your machineexplain this command