启动使用 appassembler maven 插件创建的守护进程时指定系统属性或命令行参数 [英] Specifying system properties or command line arguments when starting a daemon created using appassembler maven plugin
问题描述
我们想使用 appassembler-maven-plugin 为我们的应用程序生成守护程序脚本,我们希望避免为不同的环境有多个配置和生成的脚本,例如test、prod 等,并且希望能够在启动时设置 jvm 系统属性或添加额外的命令行参数.我已经研究了一段时间,但似乎找不到解决方案.
如果有人有任何想法或建议,他们将不胜感激,
谢谢
we would like to use appassembler-maven-plugin to generate daemon scripts for our apps, we want to avoid having multiple configuratoins and generated scripts for the different environments, e.g. test, prod, etc., and would like to be able to set a jvm system property or add an extra command line argument when starting. I have been looking into this for a while ow and can't seem to find a solution.
If anybody has any ideas or suggestions they would be greatly appreciated,
thanks
推荐答案
您可以使用 extraJvmArguments 将诸如系统属性之类的东西.请参阅文档页面上的 示例.
You can use the extraJvmArguments to put such things as a system property. See the examples on the documentation page.
这篇关于启动使用 appassembler maven 插件创建的守护进程时指定系统属性或命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!