trustin / os-maven-plugin

A Maven plugin that sets various useful properties detected from ${os.name} and ${os.arch} properties.
Apache License 2.0
296 stars 66 forks source link

Detected os.name when running on Apple Silicon M1 #58

Closed aalmiray closed 1 year ago

aalmiray commented 3 years ago

Apparently Zulu reports the value of "os.name" to be "Mac". The code currently looks for "macosx" or "osx".

tresf commented 3 years ago

Hmm... Homebrew's OpenJDK 16.0.1, os.name returns Mac OS X, but ${os.detected.name} still comes back as osx. Any idea why it doesn't behave the same?

$(brew --prefix openjdk)/bin/java -XshowSettings:properties -version 2>&1 |grep os.name
#    os.name = Mac OS X