启动使用 appassembler maven 插件创建的守护进程时指定系统属性或命令行参数

发布于 2024-12-23 17:43:07 字数 192 浏览 4 评论 0原文


我们希望使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们只是彼此的过ke 2024-12-30 17:43:07

您可以使用 extraJvmArguments 将此类内容作为系统属性。请参阅文档页面上的示例。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文