How to solve “Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.” while running “ant test”?

前端 未结 5 1594
慢半拍i
慢半拍i 2021-01-01 13:31

I have a target named test and I want to do some tests.

I put here the important parts in build.xml. It includes:



        
5条回答
  •  太阳男子
    2021-01-01 14:07

    In my case (using Mint, based on Debian)

    sudo apt-get install ant-optional
    

    was the only thing that worked.

提交回复
热议问题