Hello,
on
https://www.lwjgl.org/customize it spossible to generate a pom.xml for maven.
If nacOS x64 is selected, following profile is generated:
<id>lwjgl-natives-macos-amd64</id>
<activation>
<os>
<family>mac</family>
<arch>amd64</arch>
</os>
</activation>
On a Mac OS X with Apache Maven 3.6.3 and openjdk 14.0.1 installed this causes
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl:jar:${lwjgl.natives} is missing.
mvn help:active-profiles reports the same.
mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 14.0.1, vendor: N/A, runtime: /usr/local/Cellar/openjdk/14.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.15", arch: "x86_64", family: "mac"
Changing profile to
<id>lwjgl-natives-macos-x86_64</id>
<activation>
<os>
<family>mac</family>
<arch>x86_64</arch>
</os>
</activation>
works.
mvn help:active-profiles reports:
The following profiles are active:
- lwjgl-natives-macos-x86_64
mvn clean install reports
[INFO] BUILD SUCCESS
AdoptOpenJDK also report arch x86_64:
os.name: Mac OS X
java.vm.name: OpenJDK 64-Bit Server VM
java.vendor.version: AdoptOpenJDK
java.version: 11.0.8
os.arch: x86_64
java.vendor: AdoptOpenJDK
java.vm.version: 11.0.8+10
I searched a little about arch: "amd64", family: "mac" on google, but I could not find it.
As a result I found arch: "x86_64", family: "mac":
https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/devenv-maven-setup.htmlI found many entries with arch: "amd64", family: "unix" and arch: "amd64", family: "windows", but no entry with "amd64", family: "mac".
https://maven.apache.org/enforcer/enforcer-rules/requireOS.html mentions that arch is:
public static final String OS_ARCH = System.getProperty( "os.arch" ).toLowerCase( Locale.US );
Maybe some JDKs on MAC retrieves amd64 other x86_64.
Are there any Macs reporting arch: "amd64"?
Now my pom.xml contains two entries for mac:
lwjgl-natives-macos-x86_64
lwjgl-natives-macos-amd64
But I am not sure if lwjgl-natives-macos-amd64 is working on any mac.
If not, I think it is better to delete it.
Can you please verify that and fix
https://www.lwjgl.org/customize?Thanks.
Kind regards,
AJ