I am new to Maven. I need to include
private javafx.embed.swing.JFXPanel jFXPanel1;
To a new project with uses Maven + Jigsaw modules.
I have the following problem with javafx.embed.swing
package.
I thought that adding this dependency would work, but it does not.
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-swing -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>19</version>
</dependency>
On clean install, I see the following
(package javafx.embed.swing is declared in the unnamed module, but module com.my.module does not read it)
I don't understand this. I see that JAR, it only has a manifest file, and no .class
files, which confuses me even more.
If I look in the m2 folder, I see a different JAR with the same prefix, but with win
suffix and there I see the package.
I think this is the classifier
<classifier>${javafx.platform}</classifier>
And I think, but I don't know, if this jar is being picked by Maven or not, but it seems it is not, because I don't see it in the IntelliK libraries.
I don't have any problem with JavaFX, everything is modular out there and is working. I have the problem only with this jar.
-----------------------------UPDATE-----------------------------------
The culprit here was IntellijIdea i did click on File->Invalidate caches later restart it. Later i could see the dependency loaded.
And i can see now the dependency and that's it. Thanks.