I want to ask if there is any method to add JavaFX into Maven Archetype list in Eclipse or any plugin to use Maven to build JavaFX Application.
相关问题
- I get an exception when trying to swap elements in
- JFX scale image up and down to parent
- Dragging an undecorated Stage in JavaFX
- Include pom.xml in Jar with gradle
- What order does maven find its dependencies?
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- New Maven install: mvn -version java.lang.ClassNot
- What's the difference between archetype.xml an
- NoNodeAvailableException[None of the configured no
There is the javafx-maven-plugin which is available for maven.
When developing with Java 8 you just put that plugin as some build-plugin, without further dependencies.
Calling
mvn jfx:jar
creates your javafx-application-jar insidetarget/jfx/app/yourapp-jfx.jar
, or even creates native launcher (like EXE-file) when callingmvn jfx:native
.Disclaimer: I'm the maintainer of the javafx-maven-plugin.
The only thing I add to my
pom.xml
in order to build JavaFX Application is this dependency :It is simply fetching the javafx jar in my Java8 JRE to add it to the project. Then I use the
maven-assembly-plugin
to build the jar with dependencies.Hope it helps.
just do as a common Java application because JavaFX version jumped to 8.0. Supports for JavaFX are built-in.