Howdy, Can you create a small reproducer, ideally shared on github or similar service?
Thanks T On Mon, May 27, 2024 at 5:06 PM John Neffenger <j...@status6.com> wrote: > Maven 3.9.7 fails to set a profile property in the main JavaFX POM: > > Maven Central: org.openjfx:javafx:22.0.1 > https://central.sonatype.com/artifact/org.openjfx/javafx/22.0.1 > > Building a simple JavaFX program with Maven 3.9.6 or 3.8.8 works fine, > but I get the following error when I upgrade to Maven 3.9.7: > > $ mvn clean package > > [ERROR] Failed to execute goal on project hello-javafx: > Could not resolve dependencies for project > org.status6.hello:hello-javafx:jar:1.0.0: > The following artifacts could not be resolved: > org.openjfx:javafx-controls:jar:${javafx.platform}:22.0.1 (absent), > org.openjfx:javafx-graphics:jar:${javafx.platform}:22.0.1 (absent), > org.openjfx:javafx-base:jar:${javafx.platform}:22.0.1 (absent): > Could not find artifact > org.openjfx:javafx-controls:jar:${javafx.platform}:22.0.1 > in central (https://repo.maven.apache.org/maven2) -> [Help 1] > > It seems that the property 'javafx.platform' is no longer being set, so > Maven 3.9.7 tries to download the following artifacts: > > $ mvn -U clean package > > Downloading from central: > > https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1-$%7Bjavafx.platform%7D.jar > Downloading from central: > > https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1-$%7Bjavafx.platform%7D.jar > Downloading from central: > > https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1-$%7Bjavafx.platform%7D.jar > > I'm running with: > > $ ~/opt/apache-maven-3.9.7/bin/mvn --version > Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) > Maven home: /home/john/opt/apache-maven-3.9.7 > Java version: 21.0.2, vendor: Private Build, runtime: > /usr/lib/jvm/java-21-openjdk-amd64 > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "5.15.0-107-generic", arch: "amd64", family: > "unix" > > I have a couple questions: > > 1. Does JavaFX need to update how it's setting this platform classifier? > > 2. Could this be related to the following change? > > MNG-8081 - default profile activation should consider available system > and user properties > https://issues.apache.org/jira/browse/MNG-8081 > > Thank you, > John > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > >