How to stop Maven's verify phase rebuilding the artifact?

前端 未结 5 1893
太阳男子
太阳男子 2020-12-31 21:15

Imagine a Java project built using Maven for which I have:

  • some fast-running unit tests that:
    • developers should run before committing
    • my CI s
5条回答
  •  一个人的身影
    2020-12-31 22:08

    I know it's been a long time, but this is well-indexed and none of the answers do what was asked, but I found something that works:

    mvn failsafe:integration-test
    

    This runs the tests directly, without going through all the intermediate steps of building the project. You may want to add failsafe:verify after it.

提交回复
热议问题