You need to ensure the os-maven-plugin runs before other plugins that depend on the properties it sets. You can achieve this by moving the os-maven-plugin from the <build><extensions> section to the <build><plugins> section of your pom.xml.