NMaven (Retired)

"NUnit" group ID hardwired into TesterMojo.java(142) - doesn't match site documentation.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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 :
    0

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.

Activity

Hide
Shane Isbell added a comment -

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.

Show
Shane Isbell added a comment - 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.
Hide
Brett Porter added a comment -

AIUI this was fixed

Show
Brett Porter added a comment - AIUI this was fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: