I found that I needed the below dependancy in my project.xml file:Since I wrote this first message, I found the plugin.jelly script in $HOME/.maven/plugins/maven-test-plugin-1.5/plugin.jelly and added a line to echo the classpath. The classpath has the ant-optional-1.5.3-1.jar, but the task can't see the JUnitTask. Is Jelly referencing a different classpath?
The output is below. I'd appreciate any nudge in the right direction.
Thanks, Maury
$ maven test:test __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2
build:start:
java:prepare-filesystem:
java:compile: [echo] Compiling to $HOME/fhrcc-java/target/classes
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
test:test: [echo] Here we are. [echo] $HOME/.maven/repository/mail/jars/mail.jar:$HOME/.maven/repository/oro/jars/ oro-2.0.8.jar:$HOME/.maven/repository/commons-net/jars/commons-net-1.1.0.jar :$HOME/.maven/repository/oracle/jars/classes111.zip:$HOME/.maven/repository/ log4j/jars/log4j-1.2.8.jar:$HOME/.maven/repository/activation/jars/activatio n.jar:$HOME/.maven/repository/junit/jars/junit-3.8.1.jar:$HOME/.maven/reposi tory/jtds/jars/jtds-0.5.1.jar:$HOME/.maven/repository/bsh/jars/bsh-2.0b1.jar :$HOME/.maven/repository/ant/jars/ant-1.5.3-1.jar:$HOME/.maven/repository/an t/jars/ant-optional-1.5.3-1.jar
BUILD FAILED File...... file:$HOME/.maven/plugins/maven-test-plugin-1.5/plugin.jelly Element... taskdef Line...... 108 Column.... 9 taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found Total time: 25 seconds Finished at: Tue Apr 06 16:44:37 CDT 2004
$
-----Original Message----- From: Jarrell, Maury [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:11 AM To: Maven Users List Subject: test:test goal can't find JUnitTask
The test:test goal can't find the JUnitTask.
I think it might have to do with the fact that I have ant 1.6.1 installed. Maven 1.0-rc2 seems to rely on ant 1.5.3-1. In 1.5.3-1 the JUnitTask is in optional.jar. In ant-1.6.1 it is in ant-junit.jar.
I find the ant-optional-1.5.3-1.jar in $MAVEN_HOME/lib. It is also in $HOME/.maven/repository/ant/jars
I've tried unsetting my other ANT_HOME, but still get the same error. Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> </dependency>
to run my junit tests...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]