Reputation: 11788
I am facing strange problem with my Eclipse Indigo. I have one maven project and I wanted to run some JUnit test cases for some classes.
Whenever I try to run the test, eclipse hangs at 35% and text below that progress bar says that it is setting classpath containers
.
This step takes long time. I have waited for more than 15 minutes also but then also tests are not running.
I was not able to exit from Eclipse because setting classpath containers
step was still under progress. So I killed Eclipse process and restarted eclipse but then also same problem.
I tried to clean the project, updated maven dependencies and refreshed project but nothing helped.
Anyone knows why this problem comes in Eclipse? and how to resolve this issue?
Upvotes: 7
Views: 10574
Reputation: 1
Encountered this exact problem myself and determined the cause for the "setting classpath containers" action taking a very long time (or appear to just hang) is a that there is a large amount of content in your build output folder (for maven projects, that is normally the folder/directory at {project_root}/target) and it is causing eclipse (for some reason) get stuck on the "setting classpath containers" action.
Try to following to resolve the problem:
Upvotes: 0
Reputation: 593
window -> preferences -> maven -> usersettings -> to the one which have the right settings.xml file
This should fix the problem.
if you see the console, it might be actually trying to connect to some Jboss url to download your maven dependencies.
Upvotes: 4