Override Maven plugin configuration defined in the pom pluginManagement from the command line

后端 未结 2 943
时光取名叫无心
时光取名叫无心 2021-02-18 22:32

The POM that my project inherits contains some for the release plugin that specifies some additional arguments.

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 23:26

    You cannot override a configuration, which is already set in the POM (see Maven Bug MNG-4979). You may use variables in order to avoid this behaviour. The snippet of your answer makes use of it.

提交回复
热议问题