"The following repositories used in your gradle projects were not indexed yet: https://repo.gradle.org/gradle/libs"

I’m trying to build gradle from the source, and am encountering the following problem in IntelliJ.

The following repositories used in your gradle projects were not indexed yet: https://repo.gradle.org/gradle/libs

This error comes immediately after downloading the latest source from gradle.org, doing a ./gradlew idea, and importing the Gradle project into IntelliJ.

When I view my Maven repositories for the IntelliJ project, the line for https://repo.gradle.org/gradle/libs is highlighted in red, and the mouseover shows an error message:

java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
role: org.apache.maven.execution.MavenExecutionRequestPopulator

Building fails with various errors, to a degree that seems like some dependencies are absent, so I suspect this is the root cause.

Any advice appreciated…


This is the first time something like this has been reported, which makes me think it’s a temporary network failure.

Is it happening consistently?

Yes, it’s been happening consistently for the past 24 hours. I even did a fresh install in a new directory in case I messed up the first one.

If you aren’t getting any other reports, it’s probably something on my end. I’m pretty new at this.

Are you behind any kind of proxy?

negative, sir! No proxy.

I’m not sure what you mean by this.

IntelliJ IDEA -> Preferences -> Build, Execution, Deployment -> Build Tools -> Maven -> Repositories.

(Sorry, I guess that was a bit less than obvious)

Ah. The Gradle integration doesn’t populate that list, at least not for me. It’s also not used at all. This may be a red herring.

What are the actual failures you get when building?

Luke, I’ve pasted the build errors here:
http://www.pastebin.ca/2971496 http://www.pastebin.ca/2971496

If nothing obvious jumps out at you, though, I wouldn’t worry about it any further. This was mostly a curiosity for me. I appreciate your help.

Looks like you ran gradle idea with Java 7, but Intellij is configured to use Java 6.

Ah! Thanks, Luke, I appreciate it.

Hello , jhogan4269James Hogan,I’m from China,so my English is very very poor.I’m sorry.I just tell you how I fix the same problem.I use nexus and the idea.In my user’s settings.xml,I set the profiles about central like this :





and the mirror like this :


when update index in idea’s maven setting, this result will show the same error log as your show. if you want to fix this ,you may change the profile like this:


yes,make sure profiles’s url is the right URL
thanks for looking,if have any problem,you can email : heaven_9587@iCloud.com

In addition,above settings is supported by eclipse,so it just get wrong in intelliJ idea.