You may define those settings in the maven install direction $M2_HOME/conf/settings.xml or in the user's specific maven configuration $HOME/.m2/settings.xml. The first method should be preferred if possible as those properties should be more considered as "machine specific" rather than "user specific".
You need to add a profile as below to specify the .Net specific properties. You may or may not activate it by default.
...
<profile>
<id>dotnet</id>
<activation>
<!-- Optional activation by default -->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Locations of the the .Net installations (pick the one you need) -->
<!-- (below the default values for each dotnet version supported) -->
<dotnet.2.0.sdk.directory>C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727</dotnet.2.0.sdk.directory>
<dotnet.3.5.sdk.directory>C:/WINDOWS/Microsoft.NET/Framework/v3.5</dotnet.3.5.sdk.directory>
<dotnet.4.0.sdk.directory>C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319</dotnet.4.0.sdk.directory>
<!-- Locations of the core assemblies for silverlight frameworks -->
<!-- (mandatory only if you need to build/analyse silverlight projects)-->
<silverlight.3.mscorlib.location>C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Silverlight/v3.0</silverlight.3.mscorlib.location>
<silverlight.4.mscorlib.location>C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Silverlight/v4.0</silverlight.4.mscorlib.location>
<!-- Location of the Gallio installation
NOT MANDATORY for 32b systems
<gallio.directory>C:/Program Files/Gallio</gallio.directory>
-->
<!-- Location of FxCop installation-->
<fxcop.directory>C:/Program Files/Microsoft FxCop 10.0</fxcop.directory>
<!-- Location of PartCover installation-->
<partcover.directory>C:/Program Files/PartCover/PartCover .NET 4.0</partcover.directory>
<!-- Location of Source Monitor installation-->
<sourcemonitor.directory>C:/Program Files/SourceMonitor</sourcemonitor.directory>
<!-- Location of Gendarme installation
NOT MANDATORY
<gendarme.directory>C:/Program Files/gendarme-2.6-bin</gendarme.directory>
-->
<!-- Location of StyleCop installation
NOT MANDATORY
<stylecop.directory>C:/Program Files/Microsoft StyleCop 4.3.2.1</stylecop.directory>
-->
</properties>
</profile>
...