Specifying system properties or command line arguments when starting a daemon created using appassembler maven plugin

让人想犯罪 __ 提交于 2019-12-11 02:44:23

问题



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


回答1:


You can use the extraJvmArguments to put such things as a system property. See the examples on the documentation page.



来源:https://stackoverflow.com/questions/8716030/specifying-system-properties-or-command-line-arguments-when-starting-a-daemon-cr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!