Thanks, Eric, I tried that (including the ant and ant-optional jars as dependencies), with the same error resulting. The problem is that "TextTestEngine" itself doesn't show up in any jar!
The closest reference I see to it is from a Google search: http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=Text TestEngine which shows something possibly happening in a class called: "org.apache.tools.ant.taskdefs.optional.Test", but I cannot figure out how that is getting accessed via Maven build. Anyway, it should have been found via the dependency list. As I said, it works fine with just running Ant alone... One possible wrench in the works is that the test I'm trying to "junit" via Maven was generated using BCEL to create a Hansel coverage suite. But again, it works with Ant alone....? Any Ant internals experts out there with familiarity with this issue? Any other ideas? -Dave >From: Eric Pugh <[EMAIL PROTECTED]> >Subject: Could not find org.apache.testlet.engine.TextTestEngine >Date: Thu, 19 Feb 2004 18:31:39 +0100 >Content-Type: text/plain; > charset="iso-8859-1" > >That isn't a standard class as part of Junit.. You'll need to add it as a >dependency to your project.xml. > >Eric > >> -----Original Message----- >> From: Swierczek, David (MED) [mailto:[EMAIL PROTECTED] >> Sent: Thursday, February 19, 2004 5:24 PM >> To: '[EMAIL PROTECTED]' >> Subject: Could not find org.apache.testlet.engine.TextTestEngine >> >> >> Hi users, >> >> I'm trying to run a junit test from maven.xml and get the following >> error: >> [test] [ERROR] Could not find >> org.apache.testlet.engine.TextTestEngine. Make sure you have >> it in your >> classpath >> >> Now, this test runs fine from Ant (v 1.5) but when I migrated it to >> Maven (v. 1.0-rc1) I started to see the error. >> I searched all of the jar files and could not come up with a reference >> to "TextTestEngine" anywhere. >> >> >> My maven goal looks something like this: >> <goal name="stuff:hansel-run"> >> <property name="mavenClasspath" >> refid="maven.dependency.classpath"/> >> >> <ant:junit printsummary="yes" >> haltonfailure="no" fork="yes" timeout="600000"> >> <formatter type="xml"/> >> >> <test todir="target" >> >> name="com.ge.medit.stuff.autohanseltests.utilHanselCoverageSuite"/> >> <classpath > >> <pathelement path="${mavenClasspath}"/> >> </classpath > >> </ant:junit> >> </goal> >> >> >> >> Have you seen this problem before -- and if so, what is the solution? >> >> Thanks, >> >> -Dave > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
