The <classpath> or <modulepath> for <junit> must include junit.jar if not in Ant's own classpath

The <classpath> or <modulepath> for <junit> must include junit.jar if not in Ant's own classpath

复制junit.jar到ANT_HOME/lib目录下,重新刷新eclipse中的配置:

重新执行mvn test,或者直接执行build.xml的ant脚本。错误提示消失。

原文地址:https://www.cnblogs.com/guanghuiqq/p/9512048.html