Also make sure that you read Configuration
There may be cases that the specific compiler option that you want to use may not be directly supported by the nmaven-compile-plugin. In this case, you can use the parameter(s) tag to pass through the command to the compiler. Be aware that the command filter specified within the compiler-plugins.xml may choose not to pass this parameter to the compiler. Typically, this will only be done for unsupported commands: (you will see a warn message in the output if this occurs).
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compile-plugin</artifactId> <extensions>true</extensions> <configuration> <parameters> <parameter>/optimize+</parameter> </parameters> </configuration> </plugin> </plugins>
By default, the framework version for the main compile and the test compile are both 2.0.50727. To change this to version 1.1, set the <frameworkVersion/> & <testFramework/> tags. Note that setting the <frameworkVersion/> to 1.1.4322, will not set the <testFrameworkVersion/>: you will need to set both if your project also includes NUnit tests.
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compile-plugin</artifactId> <extensions>true</extensions> <configuration> <parameters> <frameworkVersion>1.1.4322</frameworkVersion> <testFrameworkVersion>1.1.4322</testFrameworkVersion> </parameters> </configuration> </plugin> </plugins>
The frameworkVersion is not supported for DotGNU: it depends on the target profile that the compiler was built under.
It is important to understand what setting the <vendor/> tag means for multi-platform builds.