【发布时间】:2015-02-23 11:17:08
【问题描述】:
我已经使用 javafx 构建了一个应用程序。它被开发用于触摸屏。在我的虚拟机中,我指定了以下参数:
-Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.touch=true -Dcom.sun.javafx.virtualKeyboard=javafx
当我选择某种数据输入时,使用这个参数,javafx 数字键盘会弹出。
现在我想使用 maven 部署具有相同参数的应用程序。我该怎么做?
我尝试了以下 pom 定义(由 ItachiUchia 建议),但没有成功:
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.1.2</version>
<configuration>
<mainClass>com.mycompany.app_name.Main</mainClass>
<jvmArgs>
<argument>-Dcom.sun.javafx.isEmbedded=true</argument>
<argument>-Dcom.sun.javafx.touch=true</argument>
<argument>-Dcom.sun.javafx.virtualKeyboard=javafx</argument>
</jvmArgs>
</configuration>
</plugin>
谢谢
【问题讨论】:
标签: maven deployment javafx jvm-arguments