shrapnelnet / libremines

Java implementation of classic NT winmine.exe
GNU General Public License v3.0
10 stars 1 forks source link

JavaFX dependencies cannot be resolved #2

Closed wolkenschieber closed 5 months ago

wolkenschieber commented 5 months ago

When running a build through GRAALVM_HOME=/mnt/Development/tools/graalvm-jdk-21 mvn -U gluonfx:build JavaFX dependencies aren't resovled:

[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< com.shr4pnel.minesweeper:libremines >-----------------
[INFO] Building libremines 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.3/javafx-controls-21.0.3-$%7Bjavafx.platform%7D.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.3/javafx-graphics-21.0.3-$%7Bjavafx.platform%7D.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.3/javafx-base-21.0.3-$%7Bjavafx.platform%7D.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.3/javafx-fxml-21.0.3-$%7Bjavafx.platform%7D.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.779 s
[INFO] Finished at: 2024-06-16T12:12:02+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project libremines: Could not resolve dependencies for project com.shr4pnel.minesweeper:libremines:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.openjfx:javafx-controls:jar:${javafx.platform}:21.0.3 (absent), org.openjfx:javafx-graphics:jar:${javafx.platform}:21.0.3 (absent), org.openjfx:javafx-base:jar:${javafx.platform}:21.0.3 (absent), org.openjfx:javafx-fxml:jar:${javafx.platform}:21.0.3 (absent): Could not find artifact org.openjfx:javafx-controls:jar:${javafx.platform}:21.0.3 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
shrapnelnet commented 5 months ago

this is a bug in maven i believe, if you look at the URIs, the javafx platform isn't being resolved properly. can you try rebuilding using the maven wrapper at version 3.8.8 instead?

shrapnelnet commented 5 months ago

https://issues.apache.org/jira/browse/MNG-8131

here's the issue on the apache JIRA

wolkenschieber commented 5 months ago

Interesting, build is fine using Docker image maven:3.8-eclipse-temurin-21.

shrapnelnet commented 5 months ago

maybe it's the maven version inside the container? I can replicate a successful build on a clean install while I'm on 3.8.8

shrapnelnet commented 5 months ago

feel free to reopen if you come across this issue again, closing for now.