Maven allows to activate certain build profiles based on the operating system family it runs on, for example:
The values are defined in the plexus-utils project, in Os.java. You can see in isOs that the match is case-insensitive, that the value is taken from System.getProperty( "os.name" ) and that you should specify unix to match a Linux platform.
plexus-utils
System.getProperty( "os.name" )
unix