On my Eclipse / STS IDE, when i open a (maven) project, it often gets stuck trying to resolve dependencies with ‘refreshing maven model’ message endlessly.
Not sure why this happens. But the following resolves the problem –
1. Close your Eclipse / STS IDE.
2. Go to your workspace project directory on command line (where the pom.xml exists)
3. From command-line run: mvn dependency:resolve
This will resolve all dependencies outside of Eclipse / STS IDE.
For all projects that have large number of dependencies, this may be the thing to do!
Thats It. Now when you open your IDE, there are no dependencies to resolve, and you will not see the refreshing maven model problem.