Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.14 (Unreleased)
-
Component/s: None
-
Labels:None
-
Environment:rev 521824 from trunk
-
Number of attachments :
Description
http://incubator.apache.org/nmaven/getting-started.html gives examples of using NUnit and installing existing assemblies into the maven repository using a groupId of "org.nunit". Trying to use this in a POM results in "NMAVEN-1100-003: Could not find any nunit libraries."
Looking at line 142 of TesterMojo.java, it tests against "NUnit". Using the following line to install...
mvn org.apache.maven.plugins:maven-install-plugin:install-file -DgroupId=NUnit -DartifactId=Nunit.Framework -Dversion=2.2.9.0 -Dpackaging=dll -Dfile="C:
Program Files
NUnit-Net-2.0 2.2.9\\bin
nunit.framework.dll" -DgeneratePom=true
And setting the POM dependency as
<dependency>
<groupId>NUnit</groupId>
<artifactId>Nunit.Framework</artifactId>
<version>2.2.9.0</version>
<type>library</type>
cleared it up. Don't know which way should be the right way, but it would be nice if the docs and code match.
thanks,
van.
Thanks. I missed that. The NUnit:NUnit.Framework is what NMaven now uses: the org.nunit was the old namespace that previous versions of NMaven used.. The bootstrap-build.bat[sh] script handles installing the NUnit 2.2.8 assembly as part of the build. You could also independently install and use other versions, as you have done.