

Once you enable "Download repository Index updates on startup" option and restart Eclipse, you will see that Eclipse is updating index at the bottom right corner, once this update this finish, you would be able to add dependency using Eclipse Maven GUI. It is totally due to the absent of an artifact index file. I received emails from my readers that some of them not able to add a dependency in the Maven project even in older versions of Eclipse e.g. You should also check the option "Do not automatically update dependencies from remote repositories", because that will download the latest build every time they were pushed into Maven central repository.īy the way, this error has nothing to do with Eclipse Luna. Maven central or Nexus and every time Eclipse will start it will just do an update. If this option is enabled then Eclipse will download the repository index from configured location e.g. That's why you need to check the option "Download repository Index updates on startup". If that file does not download or not exist due to any reason, Maven's dependency search will not work in Eclipse. Eclipse search artifact dependency on the repository's index file. To give you some background about how Eclipse search dependency on Maven remote repository, be it default Maven central or internal Nexus repository. Then I quickly checked Maven settings in Eclipse and found that the option which is required to download and build the index was not turned on. My first hunch was that Eclipse might not able to connect to the Internet, and to verify that I tried connecting the Eclipse market place, and boom it was working fine. After some trial and error, I realized that this is my brand new workspace and I am running with Eclipse Luna, the newest version of Eclipse which I had just downloaded a couple days of the back. I was surprised because I have never faced this issue while I was using the M2Eclipse plugin for a long time. Eclipse was not able to search dependency in Maven central repository. I have created a Maven Java project in Eclipse and subsequently tried to add Spring framework as a dependency, to my surprise, nothing was happening.

Recently I face a strange issue while using Maven in Eclipse via M2Eclipse plugin.
