You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building from scratch with maven, jdk22, windows 11 fails with missing javafx.platform
Expected Behavior
mvn should be able to build scenebuilder
Current Behavior
[ERROR] Failed to execute goal on project kit: Could not resolve dependencies for project com.gluonhq.scenebuilder:kit:jar:22.0.1-SNAPSHOT: The following artifacts could not be resolved: org.openjfx:javafx-fxml:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-controls:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-web:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-media:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-swing:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-graphics:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-base:jar:${javafx.platform}:22 (absent): org.openjfx:javafx-fxml:jar:${javafx.platform}:22 was not found in https://oss.sonatype.org/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced -> [Help 1]
Hi, just cloned the current master branch and tested as described. I also deleted my local ".m2\repository".
Unfortunately I was not able to reproduce this error with mvn package and also mvn install.
But I remember that I faced similar issues during past.
Can you please check if you possibly have some custom settings in C:\Users\<username>\.m2\settings.xml or so which could possibly prevent JavaFX from being downloaded?
The other question is, why is the build attempting to pick JavaFX release versions from Sonatype snapshot repository?
Questions to you @ramonjsantiago:
Which Maven version are you using?
Are you using customized settings in your Maven settings.xml file?
For my tests I have used Windows 10 with Maven 3.9.1.
Building from scratch with maven, jdk22, windows 11 fails with missing javafx.platform
Expected Behavior
mvn should be able to build scenebuilder
Current Behavior
[ERROR] Failed to execute goal on project kit: Could not resolve dependencies for project com.gluonhq.scenebuilder:kit:jar:22.0.1-SNAPSHOT: The following artifacts could not be resolved: org.openjfx:javafx-fxml:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-controls:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-web:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-media:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-swing:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-graphics:jar:${javafx.platform}:22 (absent), org.openjfx:javafx-base:jar:${javafx.platform}:22 (absent): org.openjfx:javafx-fxml:jar:${javafx.platform}:22 was not found in https://oss.sonatype.org/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced -> [Help 1]
Steps to Reproduce
mvn clean package or mvn clean install
Your Environment
JAVA_HOME=C:\jdk-22.0.1+8
PATH_TO_FX=C:\javafx-sdk-22.0.1\lib
PATH_TO_FX_JMODS=C:\javafx-jmods-22.0.1
Screenshots
The text was updated successfully, but these errors were encountered: