Goals available for this plugin:
| Goal | Description |
|---|---|
| dotnet:clean | Cleans the build objects generated for a .Net project or solution |
| dotnet:compile | Builds a .Net project of solution using MSBuild |
| dotnet:coverage | Generates a coverage report on a .Net project or solution using the unit tests and PartCover/NCover |
| dotnet:cpd | Maven plugin for dotnet cpd analysis. Contains copy/paste code from class CpdReport (it was impossible to inherit from AbstractDotNetMojo and CpdReport at the same time) |
| dotnet:fxcop | Generates a quality report for a .Net project or solution using FxCop |
| dotnet:gendarme | Generates a quality report for a .Net project or solution using mono gendarme |
| dotnet:help | Display help information on maven-dotnet-plugin. Call mvn dotnet:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
| dotnet:metrics | Generates the metrics for a C# project or solution using SourceMonitor |
| dotnet:msbuild | Generic MsBuild mojo. Any msbuild script file with its parameters may be set up from maven, the execution may be attached to any maven phase. |
| dotnet:package | Package in distributable format SLN (zip) |
| dotnet:stylecop | Generates a quality report for a .Net project or solution using StyleCop |
| dotnet:test | Launches the unit tests for a .Net solution or a test project using Gallio |
| dotnet:unpack | Download dependencies and unpack format SLN (zip) |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.6 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.sonar-plugins.dotnet</groupId>
<artifactId>maven-dotnet-plugin</artifactId>
<version>1.1</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.sonar-plugins.dotnet</groupId>
<artifactId>maven-dotnet-plugin</artifactId>
<version>1.1</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"