Windows paths differ from that of unix, linux, solaris, aix and sometimes it becomes challange to use one pom.xml for building on two different os.
Here is how one maven script can be used for building applications on windows and unix environments:
<profiles>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<!-- windows based properties here -->
</properties>
</profile>
<profile>
<id>non-windows</id>
<activation>
<os>
<family>!windows</family>
</os>
</activation>
<properties>
<!-- unix based properties here -->
</properties>
</profile>
</profiles>