Maven allows to activate certain build profiles based on the operating system family it runs on, for example:
OS family values:
dos
mac
netware
os/2
tandem
unix
windows
win9x
z/os
os/400
openvms
Other value you can get by run simple program:
public class SystemProperties {
public static void main(String[] args) {
System.out.println("Os name: " + System.getProperty("os.name"));
System.out.println("Os arch: " + System.getProperty("os.arch"));
System.out.println("Os version: " + System.getProperty("os.version"));
}
}