You need to add a JUnit dependency to your project.xml
I.e.
<dependency>
<id>junit</id>
<version>3.8.1</version>
</dependency>
If JUnit fails with method not found errors etc, add
maven.junit.fork=true
to your project.properties file
I�igo Serrano wrote:
Hello
I have one problem when executing the test with Maven
beta 7. I have the ant-1.5.jar and
ant-optional-1.5.jar in the maven lib and this two and
the 1.4.1 version in the repository but the maven
dosn�t find it.
Does anyone know why is it?
I am changing my projects website to use maven. I have
put a beta of it in
http://isvalidator.sourceforge.net/isdirvalidator (The
ISValidator and ISTagValidator aren�t with maven, I am
working in this) but I can�t do the test with maven.
Te output:
G:\usuarios\Inigo\pruebaMaven\ISDirValidator>maven
test
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-7
G:\usuarios\Inigo\pruebaMaven\ISDirValidator
java:prepare-filesystem:
java:compile:
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
[javac] Compiling 1 source file to
G:\usuarios\Inigo\pruebaMaven\ISDirValidator\target\test-classes
test:test:
[ERROR] BUILD FAILED
[ERROR] File......
G:\Software\maven-1.0-beta-7\plugins\maven-test-plugin-1.1\plugin.jelly
[ERROR] Element... taskdef
[ERROR] Line...... 80
[ERROR] Column.... 9
[ERROR] taskdef class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found
Total time: 11 seconds
G:\usuarios\Inigo\pruebaMaven\ISDirValidator>
Thanks in advance.
I�igo
-----------------------------------------
http://www.inigoserrano.com
http://isvalidator.sourceforge.net
_______________________________________________________________
Yahoo! Messenger
Nueva versi�n: Webcam, voz, y mucho m�s �Gratis!
Desc�rgalo ya desde http://messenger.yahoo.es
--
To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>