Maven Could not transfer artifact from/to repo1.maven.org
<p>I am trying to build Apache Flume using <code>mvn install -DskipTests</code> on SLES12.</p>

<p>Error Message goes: </p>

<blockquote>
  <p>[ERROR] Failed to execute goal on project flume-ng-elasticsearch-sink: Could not resolve dependencies for project org.apache.flume.flume-ng-sinks:flume-ng-elasticsearch-sink:jar:1.7.0-SNAPSHOT: Failed to collect dependencies at org.elasticsearch:elasticsearch:jar:0.90.1: Failed to read artifact descriptor for org.elasticsearch:elasticsearch:jar:0.90.1: Could not transfer artifact org.elasticsearch:elasticsearch:pom:0.90.1 from/to repo1.maven.org (<a href="http://repo1.maven.org/maven2" rel="nofollow">http://repo1.maven.org/maven2</a>): init failed: /dev/[u]random closed? -> [Help 1]</p>
</blockquote>

<p>I noticed that the <code>settings.xml</code> is missing in <code>.m2</code> folder. I could think about 2 possible reasons:</p>

<ol>
<li>lastUpdated file in <code>.m2</code> prevent Maven to progress </li>
<li>it is behind the proxy.</li>
</ol>

<p>How to verify which goes wrong and fix it?</p>