Eclipse build project "setting classpath containers" taking lot of time
Asked Answered
V

1

7

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?

Vitascope answered 1/10, 2013 at 8:8 Comment(0)
E
4
  1. You might have your maven settings.xml file in: c:\users\username\.m2\settings.xml
  2. where as your eclipse is pointing to "maven installation dir"\conf\settings.xml
  3. Change setting file path in eclipse,

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.

Eustache answered 1/10, 2013 at 11:0 Comment(3)
Thanks a lot man. This idea worked but I don't know how these maven settings got changed automatically.Vitascope
Hi, I have the same error but I try this solution on eclipse luna e doesn't work, How can I see the console for this validation?Berkeley
I face the same problem, can write more detail about the solution?Tyrocidine

© 2022 - 2024 — McMap. All rights reserved.