Maven Flags & Options
Java build and dependency tool.All Maven pages
- mvn -o (--offline): build without accessing remote repositoriesmvn -o builds with the local repository only and never contacts remote repositories. Preparing with dependency:go-offline, settings.xml offline mode, pitfalls.
- mvn -pl module -am: build only selected modules of a multi-module projectmvn install -pl api -am builds selected modules of a multi-module project plus their dependencies; -amd adds dependents. Module names, exclusions, resume.
- mvn -T 1C: build Maven modules in parallel threadsmvn -T 1C builds independent modules of a Maven reactor in parallel, one thread per core. Thread counts, scheduling, thread-safe plugins, logs and memory.
- mvn -U: force Maven to re-check snapshots and missing artifactsmvn -U forces Maven to check remote repositories for new SNAPSHOT versions and retry cached download failures. -nsu, update policies, what it does not do.