Maven run install with controlled test execution
Maven run install with controlled test execution
Maven run install with controlled test execution
I use these flags constantly — skipping tests for a quick build during development, running a single test when fixing a specific bug, or bypassing SSL verification when working behind a corporate proxy that intercepts HTTPS. These three flags cover most day-to-day Maven scenarios.
Maven run install but skip tests
- To run maven install command, which will compile and install compiled dependencies in local .m2 folder:
1
$ mvn install
- To run maven install command but skip all test execution
1
$ mvn install -Dmaven.test.skip=true
- To run only a specific test
1
$ mvn -Dtest=FileReaderTest test
This post is licensed under
CC BY 4.0
by the author.