This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Sts 2.9 no update and rebuild index repository maven

Jun 2nd, 2012, 01:51 PM

Hi,
I've installed SpringSource Tool Suite Version: 2.9.2.RELEASE with pointer at jdk 1.5. The current release of STS include maven 3.x but I've the problem when interact with DEPENDENCIES and maven repository:
1) In "Maven Repositories" View the Rebuild Index remains stationary at 0%.
2) When Add Dependencies (es. junit) does not return anything.
I tried with maven 2 but nothing!
I recently went over to STS + maven!
Help me
P. S.: I am sorry for not perfect English

Usually those problems are related to proxies or internet connection problems (or both). Does Maven work when you execute something from the command line? Do you have the correct connection settings in your Maven settings.xml file and Eclipse/STS configured to use that file (from the preferences)? That is all that comes to my mind at the moment... Sorry for not being more helpful here...

-Martin

Comment

I solved the problem on Windows 7 machine a few days ago so trivial
In ... apache-maven-3.0.3 \ conf dir you have settings.xml.
- Uncomment the tag <proxies>
- Edit as follows:
<proxy>
<id> optional </ id>
<active> true </ active>
<protocol> http </ protocol>
<host> </ host>
<port> </ port>
<username> </ username>
<password> </ password>
<nonProxyHosts> </ nonProxyHosts>
</ Proxy>
</ proxies>
This in the case where it is desired to make changes to all users who use the same source. In case you want to edit the configuration file in the user repository, then you must make this same change in the settings.xml local repository (./m2).