How do you force a maven MOJO to be executed only once at the end of a build?

前端 未结 7 1619
傲寒
傲寒 2021-02-08 13:06

I have a MOJO I would like executed once, and once only after the test phase of the last project in the reactor to run.

Using:

if (!getProject().isExecut         


        
相关标签:
7条回答
  • 2021-02-08 13:57

    I think you might get what you need if you use the @aggregator tag and bind your mojo to one of the following lifecycle phases:

    • prepare-package
    • package
    • pre-integration-test
    • integration-test
    • post-integration-test
    • verify
    • install
    • deploy
    0 讨论(0)
提交回复
热议问题