title: Accessing Elasticsearch through JAVA API with Eclipse
body: <p>I'm a beginner trying to access <strong>elasticsearch</strong> through JAVA with eclipse, but after following the instructions available at <a href="http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/_maven_repository.html" rel="nofollow">this guide</a> , <strong>eclipse is not able to import packages</strong> like <code>org.elasticsearch.node.*</code> and I haven't been able to continue. </p>
  
  <p>This is my first time with Maven, and the configurations might be wrong. </p>
  
  <p>This is my <strong>pom.xml</strong> file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
        &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
        &lt;groupId&gt;org.elasticsearch&lt;/groupId&gt;
        &lt;artifactId&gt;elasticsearch&lt;/artifactId&gt;
        &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
        &lt;packaging&gt;jar&lt;/packaging&gt;
  
        &lt;name&gt;elasticsearch&lt;/name&gt;
        &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
        &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;/properties&gt;
  
        &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.elasticsearch&lt;/groupId&gt;
              &lt;artifactId&gt;elasticsearch&lt;/artifactId&gt;
              &lt;version&gt;${es.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;3.8.1&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
        &lt;/dependencies&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p>I can access elasticsearch through a terminal or browser, but not with eclipse.  What step I am missing? </p>