Posts Maven run install with controlled test execution
Post
Cancel

Maven run install with controlled test execution

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.