Thanks. That did the trick when executing from the command line. Now I need to figure out how to execute the unit tests from within eclipse. The groovy unit tests are in the src/main/groovy package path and the groovy test class files are in the correct target/test-classes/ classpath, but when I try to "run as" JUnit test I get:
Groovy Runner Error Error running GroovyNetworkFilterTest.groovy failed to find a class file, ensure the Groovy output folder is on the classpath. My eclipse .classpath looks like this: <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry excluding="**/*.java" kind="src" path="src/main/resources"/> * <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> <classpathentry kind="src" output="target/test-classes" path="src/test/groovy"/>* <classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="var" path="M2_REPO/com/comcast/comcast-common-util/1.5.2/comcast-common-util-1.5.2.jar"/> <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/> <classpathentry kind="var" path="M2_REPO/jpcap/jpcap/0.7/jpcap-0.7.jar"/> <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> <classpathentry kind="output" path="target/classes"/> </classpath> ...Any ideas? On Sun, Nov 16, 2008 at 10:06 PM, Luke Daley <[EMAIL PROTECTED]> wrote: > > On 17/11/2008, at 2:54 PM, Ed wrote: > >> What's the recipe? Seems like there's alot to do. > > All I had to do was drop the following in <build> -> <plugins>… > > <plugin> > <groupId>org.codehaus.groovy.maven</groupId> > <artifactId>gmaven-plugin</artifactId> > <version>1.0-rc-3</version> > <extensions>true</extensions> > <executions> > <execution> > <goals> > <goal>generateStubs</goal> > <goal>compile</goal> > <goal>generateTestStubs</goal> > <goal>testCompile</goal> > </goals> > </execution> > </executions> > </plugin> > > You can probably drop the 'generateStubs' and 'compile' executions if you > only want it for testing. > > -- > > LD. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ed