I followed the guide at
http://incubator.apache.org/nmaven/0.16/features.html and managed to
create a dotnet library. But in order to run tests on the project I
had to add the m2-snapshot repository to the pom, otherwise it did not
find the nunit artifact. Perhaps adding a section to the guide that
the m2-snapshot must be set would be useful for other?
<repositories>
<repository>
<id>m2-snapshot</id>
<name>Maven2 Snapshot Repository</name>
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Then when I ran the test, I got two "No toolchain found" exceptions in
the consolem, but everything ran fine after that. Is there a problem
with my installation?
[INFO] [dotnet-compiler:test-compile]
[INFO] .NET Vendor: MICROSOFT
org.apache.maven.dotnet.ExecutionException: No toolchain found.
at
org.apache.maven.dotnet.compiler.impl.DotnetCompilerContextImpl.getCompilerExecutableFor(DotnetCompilerContextImpl.java:142)
at
org.apache.maven.dotnet.extensions.compiler.CSharpClassCompiler.getCompilerFileName(CSharpClassCompiler.java:200)
at
org.apache.maven.dotnet.extensions.compiler.CSharpClassCompiler.compile(CSharpClassCompiler.java:182)
at
org.apache.maven.dotnet.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:156)
regards
//Erik