Closed ennerf closed 2 years ago
how about this ?
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${javafx.plugin.version}</version>
<configuration>
<mainClass>${main.class}</mainClass>
<options>
<option>--add-opens</option>
<option>javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED</option>
<option>--add-opens</option>
<option>javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED</option>
....
</options>
</configuration>
</plugin>
That works. I didn't realize that the gluonfx-maven-plugin
defers run
to the javafx-maven-plugin
. Thanks.
I'm using a dependency that requires some runtime arguments, e.g.,
The native image adds the arguments and works, but both
run
andrunagent
fail due to access errors. I haven't tried macOS, but run fails on both Linux and Windows.