Forrest logo
back to context overview

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 machine
    explain this command
  • mvn:tldr:272a9 mvn: Delete build artifacts from the target directory.
    $ mvn clean
    try on your machine
    explain this command
  • mvn:tldr:2b874 mvn: Compile and package the compiled code in its distributable format, such as a `jar`.
    $ mvn package
    try on your machine
    explain this command
  • mvn:tldr:40c94 mvn: Install the built package in local maven repository. (This will invoke the compile and package commands too).
    $ mvn install
    try on your machine
    explain this command
  • mvn:tldr:45f59 mvn: Compile and package, skipping unit tests.
    $ mvn package -DskipTests
    try on your machine
    explain this command
  • mvn:tldr:a5124 mvn: Compile a project.
    $ mvn compile
    try on your machine
    explain this command
  • mvn:tldr:d252c mvn: Clean and then package the code with a given build profile.
    $ mvn clean -P${profile} package
    try on your machine
    explain this command
  • mvn:tldr:ea9d9 mvn: Do a clean and then invoke the package phase.
    $ mvn clean package
    try on your machine
    explain this command
back to context overview