hi,

i checked out the groovy plugin from
svn checkout svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo-sandbox/ maven-groovy-plugin maven-groovy-plugin

it seems that the classpath is not recognized in groovy. anyone is having the same problem?


$>mvn groovy:groovy -e -DfileName=<project_dir>/src/main/groovy/ MyTest.groovy [INFO] ------------------------------------------------------------------------ ----
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ ----
[INFO] Mojo error occurred:
Caused by: <project_dir>/src/main/groovy/MyTest.groovy: 3: unable to resolve class GroovyTestCase
@ line 3, column 1.
   class MyTest extends GroovyTestCase {


------------------------------------------------------------------------ ----
<snippet of  MyTest.groovy>
------------------------------------------------------------------------ ----
import groovy.util.GroovyTestCase

class MyTest extends GroovyTestCase {
    void testSomething() {
        assert 1 == 1
        assert 2 + 2 == 5 : "We're in trouble, arithmetic is broken"
    }
}
------------------------------------------------------------------------ ----

For your information, I can run from Command Line Interface via groovy!
$groovy src/main/groovy/MyTest.groovy    <----OK!!


to my understanding the class 'groovy.util.GroovyTestCase' is in groovy-all-1.0-jsr-04.jar

it is possible that groovy-all-1.0-jsr-04.jar is not in the classpath via executing 'mvn groovy:groovy' ?

Regards,
Manchi

Reply via email to