Maven Commands
Maven Commands
1. Getting Started
2. Building Projects
3. Cleaning up
● mvn clean: Clean up after the build process and remove the target
directory.
4. Project Testing
6. Project Information
7. Lifecycle Phases
8. Release Management
9. Advanced Usage
● mvn install -DskipTests: Compile and install the package, but skip
running tests.
● mvn install -Dmaven.test.skip=true: Skip compiling and running tests.
● mvn -T 1C clean install: Run builds with one thread per CPU core.
14. Troubleshooting
● mvn <phase> <phase> ...: Run specific ordered life cycle phases (e.g.,
mvn clean install).
● mvn <plugin>:<goal> <plugin>:<goal> ...: Run specific plugin goals.
● mvn -B: Run in batch mode (non-interactive) with less output - useful
for CI servers.