I have exactly the same question for any standard Java application.  In 
previous versions of NetBeans an Ant project used to provide this capability 
but Ant package as seems to be broken in NetBeans 12.  For example, using:

Product Version: Apache NetBeans IDE 12.0

Java: 14.0.1; OpenJDK 64-Bit Server VM 14.0.1+7

Runtime: OpenJDK Runtime Environment 14.0.1+7
We get  /AntProject/nbproject/build-native.xml:519: typedef class 
com.sun.javafx.tools.ant.FXJar cannot be found
using the classloader AntClassLoader[].

In order to use Maven which as you say appears not to support we now use 
jpackage successfully.  We have also mastered the issues around Apple 
notarization needed to distribute an .app or .dmg.

So now we are working on a Java app that will do all the steps in one click for 
any application !

I agree it would be nice to find a NetBeans plugin for Maven to do all the 
packaging.  If one needs writing then I am happy to contribute the logic and 
worked examples.

David Gradwell

From: HRH <hrh...@yahoo.com.INVALID>
Date: Thursday, 3 September 2020 at 19:04
To: NetBeans Mailing List <users@netbeans.apache.org>
Subject: Maven deployment plugin for JavaFX

Hi,

Does anyone know, if Maven has a plugin deployment for JavaFX application that 
will render a self-contained installable package for a given (or all) 
platform(s) (i.e. Windows - 64 bit, Linux or Mac OS)? I rather use a plugin and 
have the IDE do most of the work than using the Java Jpackage tool and do all 
the work myself.

Thanks

Reply via email to