Set maven property from plugin

后端 未结 2 431
自闭症患者
自闭症患者 2021-01-07 22:50

I\'ve read some questions here about how to set a property (most of them talked about the version number for an application) from a maven plugin. It seems there\'s no easy

2条回答
  •  粉色の甜心
    2021-01-07 23:33

    Maven sets properties in initialize phase. I assume that in that phase maven loads system properties. And after that maven doesn't load system properties again. If you try to add a system property after this phase than it's not loaded.

    Try to run your plugin in validate phase.

提交回复
热议问题