How can I atomically run mvn tests (without rebuilding source code)?
问题 I want to run a maven project lifecycle starting, and ending, with the unit tests. How can I skip recompilation and re-resolution of dependencies and only run the test phase? 回答1: If you start maven by calling a phase it will execute all lifecycle phases up to the one you are calling. For example, when calling mvn test all the phases before the test lifecycle phase will be execute too: the project will be validated, sources and resources will be generated and processed, sources will be