Maven allows to activate certain build profiles based on the operating system family it runs on, for example:
it might worth asking from maven help:
mvn help:system | grep "os\."