Configuration and Usage

This document is intended to provide instructions for using the .NET Maven Plugin.

Configuring the Plugin

These settings are used by the compile goal.

Setting Type Description
excludes String[] List of files to exclude. Specified as fileset patterns which are relative to the source directory.
includes String[] List of files to include. Specified as fileset patterns which are relative to the source directory.

Example Configuration

The follow configuration will compile all C# files, with exception to *Test.cs files, found in the ${basedir}/src/main/csharp directory:

<build>
  ...
  <sourceDirectory>src/main/csharp</sourceDirectory>
  ...
  <plugins>
    ...
    <plugin>
      <groupId>net.sf.doodleproject</artifactId>
      <artifactId>dotnet-maven-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <compilerArguments>
          <type>library</type>
        </compilerArguments>
        <fork>true</fork>
        <compilerId>true</compilerId>
        <includes>
          <include>**/*.cs</include>
        </includes>
        <excludes>
          <exclude>**/*Test.cs</exclude>
        </excludes>
      </configuration>
    </plugin>
    ...
  </plugins>
  ...
</build>