Is it possible to run a Bash script from Maven?

后端 未结 7 1751
無奈伤痛
無奈伤痛 2021-02-05 01:53

For creating configuration of my application I need to run bash script. Is it possible to integrate execution of Bash scripts in Maven, maybe there are some plugins?

7条回答
  •  清歌不尽
    2021-02-05 02:41

    You can do this, see answer:

    I want to execute shell commands from maven's pom.xml

    But it is not advisable, as this produces not so portable builds. Why do you need this in first place? Using this plugin usually indicates some weird necessity in project build

提交回复
热议问题