Test of .net application with NMaven

Jan 27, 2009 at 9:56 PM
Edited Jan 27, 2009 at 9:59 PM

Hi to all ! I hope it is here I can expose my problem.
 I'm working in a french Compagny (Koossery Technology www.koossery-tech.fr) and now in our Architecture&Tools department, we want to use Maven with .Net technology. we chose NMaven to do that.
Currently we have a pb with cmd "mvn test".

First of all,
1- in a local maven repo, we have installed all dll which are requiered for a simple application ( for example the dll of Nunit)
NB : when NMaven install the dll in the repo,  it names the dll file as {ArtifactId}-{version}.dll
(e.g: Nunit.framework-2.4.5.0.dll)

2- in our project, when we do "mvn compile",  everything is Ok. BUILD SUCCESS

3- but when we do "mvn test", BUIL FAILED.
 the error is "cannot  load the file or assembly 'Nunit.framework, Version=2.4.5.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' nor i's dependecy. Has not found sp‚cifi  files."

We have remarked that if we go in the folder "target\test-assemblies" and renamed the 'nunit.framework-2.4.5.0.dll' to 'nunit.framework.dll', BUILD SUCCED.

our questions are
- Is there any issue of that pb?
- Where  the pb comes from? Nunit.console.exe?
- is Toolchains can help to resolve that pb? if yes how can we use it with NMaven?
- is it Ok to change the name of dll when maven install it in the Repository?

Coordinator
Feb 11, 2009 at 4:51 PM
I'll look into the NUnit problems If you could come up with a sample project that reproduces this, that would help.
Feb 17, 2009 at 12:20 PM
Hi Sisbell

Can you give me an email where i can send the sample that reproduces the problem?

However, i have some questions

- is the documentation http://incubator.apache.org/nmaven/0.14/getting-started.html  are already ok to use? because all of commands here doesn't work!

- About Repository, is there any Mven Central for Nmaven where we can configure maven on our  local machine? If yes, what is the link? if no, i suppose that everybody have to install manually every DLL in his repository before use whit Nmaven?

- Is there any documentation that we can use for Nmaven? if yes what is the link?


About Sample.
=============

to use Nmaven on this project(Compile, test, install ...),  you need to manually install the following DLL:
// nunit.framework.dll
   <dependency>
     <groupId>dotnet.nunit</groupId>
     <artifactId>nunit.framework</artifactId>
     <type>dotnet:library</type>
     <version>2.4.5.0</version>
     <scope>test</scope>
   </dependency>

// KoosseryTechFwk.dll
   <dependency>
     <groupId>dotnet.com.koosseryTech</groupId>
     <artifactId>KoosseryTechFwk</artifactId>
     <type>dotnet:library</type>
     <version>2.0.6.0</version>
   </dependency>

//common.logging.dll
   <dependency>
     <groupId>dotnet.org.springframework.common</groupId>
     <artifactId>common.logging</artifactId>
     <type>dotnet:library</type>
     <version>1.1.0.2</version>
   </dependency>

//antlr.runtime.dll
   <dependency>
     <groupId>dotnet.org.springframework.antlr</groupId>
     <artifactId>antlr.runtime</artifactId>
     <type>dotnet:library</type>
     <version>2.7.6.2</version>
   </dependency>

// spring.core.dll
   <dependency>
     <groupId>dotnet.org.springframework</groupId>
     <artifactId>spring.core</artifactId>
     <type>dotnet:library</type>
     <version>1.1.0.2</version>
   </dependency>

// castle.dynamicproxy.dll
   <dependency>
     <groupId>dotnet.org.castle</groupId>
     <artifactId>castle.dynamicproxy</artifactId>
     <type>dotnet:library</type>
     <version>1.1.5.0</version>
   </dependency>