【发布时间】:2014-10-27 00:08:18
【问题描述】:
我真的浪费了 2 个小时试图让 ant junit 任务正常工作。首先,我很难找到ant-junit.jar 文件,但我设法在一个 Maven 页面中找到它。之后我把它放在几个地方(~/.ant/lib,/usr/share/ant/lib)但没有运气..我仍然收到这个错误:
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
This looks like one of Ant's optional components.
所以我正在寻找:
- ant junit任务文件下载官方网页
- 放置该文件的正确位置。
【问题讨论】: