gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
189 stars 39 forks source link

How to use gluonfx-maven-plugin without javafx-maven-plugin? #434

Open ctoabidmaqbool opened 2 years ago

ctoabidmaqbool commented 2 years ago

Currently gluonfx-maven-pluign depends upon javafx plugin. How we can use it without the need of javafx plugin?

As we are using zulu17.34.19-ca-fx-jdk17.0.3-win_x64 with have inbuild javafx libs, how to use plugin without any javafx lib dependencies?

grandadmiralmcb commented 2 years ago

maybe exclusions in the pom?

harryssuperman commented 1 year ago

try to exclude the dependencies in the gluonfx-maven-plugin section in the pom.xml. If i remember well something like this:

 <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>gluonfx-maven-plugin</artifactId>
                <version>${gluonfx.plugin.version}</version>
                <EXCLUDE SECTION>
                </EXCLUDE SECTION>
                <configuration>
                    <target>${gluonfx.target}</target>
                    <mainClass>${main.class}</mainClass>