The plugin does not use the architecture of the OS when downloading dependencies. The Gradle plugin has the same problem #112.
Until it is fixed the javafxPlatform configuration property can be used to override the broken os / architecture logic in the Maven plugin
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.7</version>
<configuration>
<mainClass>x.y.z.JavaFxClient</mainClass>
<!-- Hardcoded path to correct Java -->
<executable>/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java</executable>
<!-- Use this to override the broken os / architecture logic -->
<javafxPlatform>mac-aarch64</javafxPlatform>
</configuration>
</plugin>
The plugin does not use the architecture of the OS when downloading dependencies. The Gradle plugin has the same problem #112.
Until it is fixed the javafxPlatform configuration property can be used to override the broken os / architecture logic in the Maven plugin