failsafe plugin won't run on one project but will run on another — why?

前端 未结 4 611
眼角桃花
眼角桃花 2020-11-29 12:49

This is driving me insane. The Maven failsafe plugin will not run on my project. If I run mvn verify only surefire runs. If I type mvn failsafe:verify

4条回答
  •  一向
    一向 (楼主)
    2020-11-29 13:03

    Here I will share my 2 cents. I had same issue and solution above didn't solve my problem.

    I had maven-failsafe-plugin encapsulated in pluginManagement tag. I noticed to move it out into plugins tag instead when I saw this doc in the 4.0.0 maven schema:

    Default plugin information to be made available for reference by projects derived from this one. This plugin configuration will not be resolved or bound to the lifecycle unless referenced. Any local configuration for a given plugin will override the plugin's entire definition here.

    Hopefully this additional info. solves more ppl's problem like myself.

提交回复
热议问题