Skip navigation

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.

About these ads

3 Comments

  1. Thanks – a vital bit of info for STS usage! – cannot believe STS docs doesnt advise this nice tit bit.

  2. 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

  3. Thank you! Extremely helpful!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: