Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn clean install fails with missing javafx.platform #694

Open
ramonjsantiago opened this issue Jun 28, 2024 · 2 comments
Open

mvn clean install fails with missing javafx.platform #694

ramonjsantiago opened this issue Jun 28, 2024 · 2 comments
Labels
bug Something isn't working unanswered

Comments

@ramonjsantiago
Copy link

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

@ramonjsantiago ramonjsantiago added the bug Something isn't working label Jun 28, 2024
@Oliver-Loeffler
Copy link
Collaborator

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
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unanswered
Projects
None yet
Development

No branches or pull requests

2 participants