Repository navigation
Closed
Upstream Bug
Copy link
Milestone
Description
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
Summary
build.sh for mac dmg fails
What software is involved?
- Operating System: macOS 14.5
- Arch: x86
- Cryptomator: develop
Volume Type
None
Steps to Reproduce
- clone the repo
- cd cryptomator/dist/mac/dmg
- ./build.sh
Expected Behavior
App builds
Actual Behavior
Build fails
Reproducibility
Always
Relevant Log Output
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.478 s
[INFO] Finished at: 2024-06-07T09:54:13+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cryptomator: Could not resolve dependencies for project org.cryptomator:cryptomator:jar:1.13.0-SNAPSHOT: The following artifacts could not be resolved: org.openjfx:javafx-base:jar:${javafx.platform}:21.0.1 (absent), org.openjfx:javafx-graphics:jar:${javafx.platform}:21.0.1 (absent), org.openjfx:javafx-controls:jar:${javafx.platform}:21.0.1 (absent), org.openjfx:javafx-fxml:jar:${javafx.platform}:21.0.1 (absent), org.openjfx:javafx-swing:jar:${javafx.platform}:21.0.1 (absent): org.openjfx:javafx-base:jar:${javafx.platform}:21.0.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]Anything else?
Dependencies being downloaded by Maven from Central all do not have a platform in their filenames:
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.1/javafx-base-21.0.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.1/javafx-base-21.0.1.pom (749 B at 62 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx/21.0.1/javafx-21.0.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx/21.0.1/javafx-21.0.1.pom (8.4 kB at 702 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.1/javafx-graphics-21.0.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.1/javafx-graphics-21.0.1.pom (904 B at 70 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.1/javafx-controls-21.0.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.1/javafx-controls-21.0.1.pom (908 B at 53 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.1/javafx-fxml-21.0.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.1/javafx-fxml-21.0.1.pom (900 B at 69 kB/s)I compared the build.sh to the GitHub workflow mac-dmg.yml (that builds the dmg, as can be seen in your GitHub action run three weeks ago), but can't spot the problem.
Edit: I did not look close enough through the Maven output. The log statements above are info about downloading the poms. Further down in the Maven output:
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.1/javafx-base-21.0.1.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.1/javafx-base-21.0.1-$%7Bjavafx.platform%7D.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-security/10.0.20/jetty-security-10.0.20.jar (122 kB at 433 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.1/javafx-graphics-21.0.1.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/21.0.1/javafx-base-21.0.1.jar (302 B at 1.1 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.1/javafx-graphics-21.0.1-$%7Bjavafx.platform%7D.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/toolchain/jetty-servlet-api/4.0.6/jetty-servlet-api-4.0.6.jar (273 kB at 938 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.1/javafx-controls-21.0.1.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/21.0.1/javafx-graphics-21.0.1.jar (306 B at 1.0 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.1/javafx-controls-21.0.1-$%7Bjavafx.platform%7D.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/10.0.20/jetty-util-10.0.20.jar (571 kB at 2.0 MB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.1/javafx-fxml-21.0.1.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/21.0.1/javafx-controls-21.0.1.jar (306 B at 1.0 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.1/javafx-fxml-21.0.1-$%7Bjavafx.platform%7D.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/21.0.1/javafx-fxml-21.0.1.jar (302 B at 993 B/s)Metadata
Metadata
Assignees
Labels
No labels
Activity
infeo commentedon Jun 7, 2024
This is a maven issue, see https://issues.apache.org/jira/browse/MNG-8131. (also this SO thread https://stackoverflow.com/questions/78542808/maven-project-fails-to-resolve-javafx-dependencies)
Downgrading to maven 3.9.6 fixes the problem.
infeo commentedon Jun 10, 2024
Since github adopted now maven 3.9.7 in its latest macOS runner (see https://github.com/actions/runner-images/blob/macos-14-arm64/20240603.1/images/macos/macos-14-arm64-Readme.md#project-management), i guess we can't ignore this. 🙄
purejava commentedon Jun 11, 2024
Reading the linked issue shows that this actually is an old JavaFX parent pom issue, that showed up with a change in Maven 3.9.7 and got fixed by Gluon with Gluon JavaFX 23-ea+20.
Maven 3.9.8 will have some FATAL warnings in the log for issues like this. Since we aren't on JavaFX 23 yet, we can use a work around:
Merge pull request #3456 from purejava/fix-#3453
Remove the javafx.platform property
Feature: JFX 25 (#4013)