Ask questionsValidatorFX depends on Linux JavaFX artifacts
When ValidatorFX is added to pom.xml:
<dependency> <groupId>net.synedra</groupId> <artifactId>validatorfx</artifactId> <version>0.1.13</version> </dependency>
For some reason, this artifacts contains the dependencies to the javafx-base, javafx-controls and javafx-graphics with the 'linux' classifier.
As a result, when I import this project on Windows, I get 2 copies of these dependencies: the first one is added by javafx-controls explicit dependency in the project pom, and downloads the windows-specific artifacts, the second one comes from validatorfx, and use 'linux'. This causes the errors in the module-info, like Module 'com.example.demo1444d' reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base'.
Please exclude javafx dependencies from the resulting POM, e.g. ControlsFX does not have dependencies on javafx libs.
Answer questions torakiki
Could this be the cause? https://github.com/openjfx/javafx-gradle-plugin/issues/26
Related questionsNo questions were found.