When using IntelliJ to build a JavaFx project, eventually you man want to build a JAR to deploy the program to another system. The following plugin is required in the Plugin section of the POM.xml file to build a JAR file. There may be other ways than manually adding this plug-in. This method was shown on a Discord channel.
The Plugin for the pom.xml File
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.yourorghere.yourprojectname.JarMain
</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
Be sure and change the org.yourorghere… to point to the correct value for your project.
A Video Describing How to Build a Jar in an IntelliJ project
This is useful when watching this video:
I hope this helps if you have this problem.
:ww