Maven生命周期扩展订单

时间:2019-05-15 12:57:12

标签: java maven maven-3 maven-extension

我正在阅读有关Maven Lifecycle Extensionshere的内容,并且以下疑问浮出水面。

所以,当我构建我的项目(其中包括我的Extension)时,将按照以下顺序进行操作:(如果我在这里错了,请纠正我)

1st : Maven Session of my project is created
        - Now whatever we wrote in afterSessionStart() in the extension is called

2nd : Maven instances created for each POM
        - Now whatever we wrote in afterProjectsRead() in the extension is called

3rd: Maven will build the project

4th : Maven Session ends
        - Now whatever we wrote in afterSessionEnd() in the extension is called

现在我在文档中读到了:

  

注意:如果使用构建扩展机制,则该方法   由于扩展程序稍后加载,因此将不会调用afterSessionStart   在构建中

这是否意味着我的扩展名afterSessionStart()永远不会在我将其添加为生命周期扩展名的项目中调用?

0 个答案:

没有答案