Problem:
In STS I right-click on my project and want to add a Maven dependency (using m2eclipse). However it seems whatever I type in the groudId no search results are found.
Solution:
Since installing STS I’ve not indexed the external global Maven repository (central – http://repo1.maven.org/maven2).
In STS, open the ‘Maven Repositories’ view and rebuild the index for Global Repositories>Central.
Just another little trap to slow down simple development.
3 Comments
Thanks – a vital bit of info for STS usage! – cannot believe STS docs doesnt advise this nice tit bit.
this was extremely helpful … now i can use the sts to add plugins and dependecies but then a problem arose when i added Apache Archiva as a mirror of the maven central repo (so i can have a local cache of artificats, and publish my own artifacts to my own repo) and now i can’t add dependcies and plugins unless there have been already downloaded to Archiva …. i will look for a solution
Thank you! Extremely helpful!