• Home
  • LLMs
  • Python
  • Docker
  • Kubernetes
  • Java
  • Maven
  • All
  • About
Maven | mvn CLI Help
  1. Help
  2. Basic Information Options
  3. Security Options
  4. Performance Options
  5. Configuration File Options
  6. Build Behavior Options
  7. Project Selection Options
  8. Error Handling and Build Control Options
  9. Miscellaneous Options

  1. Help
    To print the help of mvn CLI:
    $ mvn -h
    Usage : mvn [options] [<goal(s)>] [<phase(s)>]
  2. Basic Information Options
    Option Description
    -h,--help Display help information
    -v,--version Display version information
    -V,--show-version Display version information WITHOUT stopping build
    -X,--debug Produce execution debug output
  3. Security Options
    Option Description
    -emp,--encrypt-master-password <arg> Encrypt master security password
    -ep,--encrypt-password <arg> Encrypt server password
  4. Performance Options
    Option Description
    -T,--threads <arg> Thread count, for instance 2.0C where C is core multiplied
  5. Configuration File Options
    Option Description
    -f,--file <arg> Force the use of an alternate pom.xml file (or directory with pom.xml)
    -s,--settings <arg> Alternate path for the user settings file
    -gs,--global-settings <arg> Alternate path for the global settings file
    -gt,--global-toolchains <arg> Alternate path for the global toolchains file
    -t,--toolchains <arg> Alternate path for the user toolchains file
    -l,--log-file <arg> Log file where all build output will go (disables output color)
  6. Build Behavior Options
    Option Description
    -q,--quiet Quiet output - only show errors
    -o,--offline Work offline
    -B,--batch-mode Run in non-interactive (batch) mode (disables output color)
    -N,--non-recursive Do not recurse into sub-projects
    -nsu,--no-snapshot-updates Suppress SNAPSHOT updates
    -ntp,--no-transfer-progress Do not display transfer progress when downloading or uploading
    -U,--update-snapshots Forces a check for missing releases and updated snapshots on remote repositories
  7. Project Selection Options
    Option Description
    -pl,--projects <arg> Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path
    -am,--also-make If project list is specified, also build projects required by the list
    -amd,--also-make-dependents If project list is specified, also build projects that depend on projects on the list
    -P,--activate-profiles <arg> Comma-delimited list of profiles to activate
    -rf,--resume-from <arg> Resume reactor from specified project
  8. Error Handling and Build Control Options
    Option Description
    -fae,--fail-at-end Only fail the build afterwards; allow all non-impacted builds to continue
    -ff,--fail-fast Stop at first failure in reactorized builds
    -fn,--fail-never NEVER fail the build, regardless of project result
    -C,--strict-checksums Fail the build if checksums don't match
    -c,--lax-checksums Warn if checksums don't match
  9. Miscellaneous Options
    Option Description
    -b,--builder <arg> The id of the build strategy to use
    --color <arg> Defines the color mode of the output. Supported are 'auto', 'always', 'never'.
    -D,--define <arg> Define a system property
    -e,--errors Produce execution error messages
© 2025  mtitek