Maven plugin development: goal dependency

It's vary hard to find proper search query for my question so I hope it's not a duplicate. I'm developing maven plugin with few goals. I'd like to combine two of them in the chain (lifecycle?). Before `clean-checkout` goal is executed I would like to execute `checkout` goal first. I'm using annotation approach and tried using `@Execute` annotation to point which goal should be executed. The plugin compiles but is not executed in the way I assumed, cause there is no preceeding `checkout` goal while executing `clean-checkout`. @Mojo(name = "checkout", defaultPhase = LifecyclePhase.GENERATE_SOURCES) public class Checkout extends AbstractMojo { @Mojo(name = "clean-checkout", defaultPhase = LifecyclePhase.GENERATE_SOURCES) @Execute(goal = "checkout", phase = LifecyclePhase.GENERATE_SOURCES) public class CleanCheckout extends AbstractMojo { Without `defaultPhase` and `phase` properties, the build was failing. Where I'm doing mistake?

以上就是Maven plugin development: goal dependency的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准