Skip to content

build.sh for mac dmg fails with cannot resolve dependencies with ${javafx.platform} #3453

Closed
cryptomator/aur
#6

Description

@purejava

Please agree to the following

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

  1. clone the repo
  2. cd cryptomator/dist/mac/dmg
  3. ./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)

Activity

  1. infeo commented on Jun 10, 2024

    @infeo
    Member
  2. reopened this on Jun 10, 2024
  3. purejava commented on Jun 11, 2024

    @purejava
    ContributorAuthor

    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:

    manually specify the javafx.platform property, i.e.: mvn
    -Djavafx.platform=linux compile

  4. added a commit that references this issue on Jun 12, 2024
  5. added this to the minor milestone on Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions