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

前端 未结 7 1720
傲寒
傲寒 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:45

    Normally, this is a matter of configuration. You might have to setup a project just for the mojo and make it dependent on all of the other projects. Or you could force one of the child projects to be last by making it dependent on all of the other children.

提交回复
热议问题