How to Configure JavaFX Application with Maven in Eclipse and JDK8 Tutorial

Martin Wells · 31K views · 2015 · 9:55

Open on YouTube

Software practice, open source & careersTesting, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when they need a from-scratch walkthrough for building JavaFX executables and native installers with Maven in Eclipse, often while troubleshooting the zenjava plugin.

Recommended by 3 people across 3 different months, 2017 to 2019.

What it is

A roughly 10-minute screencast showing how to set up Maven in Eclipse for a JavaFX project on JDK 8. It covers using the zenjava JavaFX Maven plugin to build an executable jar and a native installer, and is presented by Martin Wells.

What people said

Recommends iamkenos · 2017-01 · Stack Overflow · on “JavaFX Maven Plug-in: No plugin found for prefix 'jfx' in the current project and in the plugin groups”

I'm trying to create an executable jar for my JavaFX application within an Eclipse Maven Project. I'm following this thread: JavaFx Application with Maven in Eclipse [LINK] And this turotial: [this video] I'm getting a No plugin found for prefix 'jfx' in the current project and in the plugin groups error when trying to run the goal: jfx:jar Full build error: [INFO] Scanning for projects... [INFO] Downloading: [LINK] [WARNING] Failed to retrieve plugin descriptor for com.zenjava:javafx-maven-plugin:8.1.2: Plugin com.zenjava:javafx-maven-plugin:8.1.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.zenjava:javafx-maven-plugin:jar:8.1.2 [INFO] Downloading:

Recommends Maicon Henrique · 2018-05 · Stack Overflow · on “Error when run Maven project, added JasperReports dependency”

I found a solution, at least for me. I created a new javafx maven project, but now on eclipse, with help of this video [this video] and have copied the source files to it. The old pom.xml file had any bug with some maven plugin, i dont know... But with the new pom.xml the project run. New pom.xml: <project xmlns=" [LINK] " xmlns:xsi=" [LINK] " xsi:schemaLocation=" [LINK] [LINK] "> <modelVersion>4.0.0</modelVersion> <groupId>br.com.infox</groupId> <artifactId>prjInfoXFX</artifactId> <version>0.0.1</version> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin>

Recommends Wesos de Queso · 2019-12 · Stack Overflow · on “Export JavaFX Project to a runnable using Eclipse”

Check this video, he creates the project from zero telling how to avoid common mistakes and creating executable and natvie installers [this video]

Cites iamkenos · 2017-02 · Stack Overflow · on “JavaFX Maven Plugin: com.zenjava - How to copy external resources”

I'm relatively new to Maven + JavaFX and I'm trying to produce a JavaFX executable jar file with the com.zenjava maven plugin. I was following this guide for reference: [this video] I have the following folder structure for my project: [LINK] Now I'm trying to run the config jfx:jar during maven build and was able to produce a jar file but the resources I need are not copied under the target/jfx/app folder. [LINK] Basically, I want to copy the entire src/main/resources folder to target/jfx/app/resources . How do I accomplish this? Some information: The src/main/resources/ folder will contain different kinds of files that I will need during runtime, (excel files, pdf, htmls...) and not just proper