是否可以从Maven运行bash脚本? [英] Is it possible to run a bash script from Maven?

查看:94
本文介绍了是否可以从Maven运行bash脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要创建我的应用程序的配置,我需要运行bash脚本. 是否可以在Maven中集成bash脚本的执行,也许有一些插件? 谢谢.

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? Thanks.

推荐答案

您可以执行此操作,请参见答案:

You can do this, see answer:

我想从maven的pom执行shell命令.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

这篇关于是否可以从Maven运行bash脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆