gluonhq / scenebuilder

Scene Builder is a visual, drag 'n' drop, layout tool for designing JavaFX application user interfaces.
https://gluonhq.com/products/scene-builder/
Other
748 stars 220 forks source link

mvn clean install fails with missing javafx.platform #694

Open ramonjsantiago opened 5 months ago

ramonjsantiago commented 5 months ago

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

Oliver-Loeffler commented 5 months ago

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.

Windows, Java and Maven version

Java and JavaFX Version and Paths

Oliver-Loeffler commented 2 months ago

Hi @ramonjsantiago, have you had any chance to test / try again? Could you please test with https://github.com/gluonhq/scenebuilder/tree/23.0.0 and Maven (>= Apache Maven 3.9.1, < 4.0.0) and JDK23/OpenJF23?