启动使用 appassembler maven 插件创建的守护进程时指定系统属性或命令行参数
我们希望使用 appassembler-maven-plugin 为我们的应用程序生成守护程序脚本,我们希望避免为不同的环境(例如测试、生产等)进行多个配置和生成脚本,并且希望能够设置 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 extraJvmArguments 将此类内容作为系统属性。请参阅文档页面上的示例。
You can use the extraJvmArguments to put such things as a system property. See the examples on the documentation page.