javamavenjavafx

Name of Maven dependency for JavaFX


I looked for a solution to this question but have not found anything:

What is this library org.openjfx:javafx-swing:jar:win:14.0.1:compile?

What bothers me is the word "win". I am using a reference like this in my pom file

<dependency>
  <groupId>org.openjfx</groupId>
  <artifactId>javafx-swing</artifactId>
  <version>14.0.1</version>
</dependency>

but the dependency plugin complains that this library is missing.

Can anyone please provide a hint in the right direction?


Solution

  • Here is the listing on mvnrepository (circa 17 April 2020):

    https://mvnrepository.com/artifact/org.openjfx/javafx-swing/14.0.1

    The "win" value is the <classifier> meaning that this dependency is Windows-specific.

    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-swing</artifactId>
        <version>14.0.1</version>
        <classifier>win</classifier>
        <scope>compile</scope>
        <type>jar</type>
    </dependency>