Intellij IDEA 15: Unindexed remote maven repositories found
<p>I created a Java Gradle project in IntelliJ IDEA 15.0.3. But I am getting the following error.</p>

<pre><code>Unindexed remote maven repositories found. Disable...
        The following repositories used in your gradle projects were not indexed yet: 
        http://repo1.maven.org/maven2
        If you want to use dependency completion for these repositories artifacts,
        Open Repositories List, select required repositories and press "Update" button (show balloon)
</code></pre>

<p>When I open the repositories list and click update, I am getting the following error </p>

<pre><code>java.lang.RuntimeException: java.io.IOException: Transfer for nexus-maven-repository-index.properties failed
</code></pre>