How to bind plugin mojos (goals) to few phases of default lifecycle?

后端 未结 2 502
我寻月下人不归
我寻月下人不归 2021-02-14 05:47

My custom maven plugin have three goals (mojos):

  • convert assigned to default phase: process-test-resources
  • generateStubs
2条回答
  •  Happy的楠姐
    2021-02-14 06:25

    I think what you are looking for is the defaultPhase attribute of the Mojo annotation, see https://maven.apache.org/components/plugin-tools/maven-plugin-tools-annotations/ for all the details.

提交回复
热议问题