Plugin Documentation

Goals available for this plugin:

GoalDescription
dotnet:cleanCleans the build objects generated for a .Net project or solution
dotnet:compileBuilds a .Net project of solution using MSBuild
dotnet:coverageGenerates a coverage report on a .Net project or solution using the unit tests and PartCover/NCover
dotnet:cpdMaven 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:fxcopGenerates a quality report for a .Net project or solution using FxCop
dotnet:gendarmeGenerates a quality report for a .Net project or solution using mono gendarme
dotnet:helpDisplay help information on maven-dotnet-plugin.
Call
 mvn dotnet:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.
dotnet:metricsGenerates the metrics for a C# project or solution using SourceMonitor
dotnet:msbuildGeneric 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:packagePackage in distributable format SLN (zip)
dotnet:stylecopGenerates a quality report for a .Net project or solution using StyleCop
dotnet:testLaunches the unit tests for a .Net solution or a test project using Gallio
dotnet:unpackDownload dependencies and unpack format SLN (zip)

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

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"