JavaFX applications fail to build with Maven 3.9.7
John Neffenger
john at status6.com
Tue May 28 20:09:16 UTC 2024
JavaFX applications fail to build with Maven 3.9.7, which was released
on May 25. The Maven developers identified the JavaFX parent POM file as
the source of the problem:
Maven Central: org.openjfx:javafx:22.0.1
https://central.sonatype.com/artifact/org.openjfx/javafx/22.0.1
To see the errors, download the file and validate it with Maven as follows:
$ curl -O
https://repo.maven.apache.org/maven2/org/openjfx/javafx/22.0.1/javafx-22.0.1.pom
$ mvn -f javafx-22.0.1.pom validate
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id linux-x86_64 @ line 36, column 17
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id linux-aarch64 @ line 68, column 17
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id macosx-x86_64 @ line 116, column 17
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id macosx-aarch64 @ line 148, column 17
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id windows-x86_64 @ line 180, column 17
[ERROR] 'profiles.profile.id' must be unique but found duplicate profile
with id windows-x86 @ line 212, column 17
For details, please see:
Maven 3.9.7 fails to activate profile?
https://lists.apache.org/thread/qcbgby00xl27ljdv5yqp0gf1sbvwnq71
There's also already a bug report against Maven, although it seems the
problem may be only on the JavaFX side:
Maven MNG-8131 - Property replacement in dependency pom no longer works
https://issues.apache.org/jira/browse/MNG-8131
I'm willing to look into this, but it might need someone who can work
more quickly, since any JavaFX developer who upgrades to the latest
Maven will hit this. (I don't yet know even where this POM file is
created.) Let me know either way.
Thanks,
John
More information about the openjfx-dev
mailing list