given the information you provided, my best guess is that the problem is related to a buildscript section in either maven.gradle or another build script. for example, you might be missing a repository declaration there. to rule out that the problem is related to eclipse (integration), i'd first try to build the project on the command line (e.g. gradle clean build --refresh-dependencies).


your local repo maybe corrupted. try to uninstall junit from your local repo and redownload it.

rm -rf ~/.m2/repository/junit 

Related Query

More Query from same tag