'How to export JavaFX Maven project?

I wrote modular JavaFx Maven project in Eclipse IDE.

Now I am trying to convert it to runnable jarfile, but receive the following error after clicking Next.

How can I fix this?

Details button provides the same text:

An error has occurred. See error log for more details.
Cannot invoke "org.eclipse.swt.widgets.Combo.getText()" because "this.fDestinationNamesCombo" 
is null


Solution 1:[1]

I had the same problem and noticed @jewelsea's suggestion in the comments regarding Maven and it led me to a solution in my case. I'm working with libgdx and used the libgdx Project Setup tool to create the project and then applied their suggestions for converting to the Lwjgl3 library. Exporting the jar in Eclipse didn't work because I got the same fDestinationNamesCombo error. Instead, I used this batch command (which the gdxlib setup tool put in the project directory) in a Windows command prompt: "gradlew desktop:dist". This created a working jar in the desktop\build\libs directory.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pedro-McM