I created a simple module based HelloWorld JavaFx application with maven. When I start it using maven javafx:run it works just fine with no warnings. Then I want to create an uber jar with the help of maven-shade-plugin
. Here is a part of pom.xml
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>Launcher</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
If I run this jar with java -jar app.jar
I get the following warning on console :
PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @48f63233'
I found out that it could be just ignored but I wonder if it is possible to fix it. Any suggestions?