title: Spring data aerospike
body: <p>I would like to work with <code>Aerospike</code> and use <code>Spring Data</code>. I found useful library for my goals <a href="https://github.com/spring-projects/spring-data-aerospike" rel="noreferrer">here</a>.</p>
  
  <p>However, but adding it to dependencies, this code from sample still could not find dependencies.</p>
  
  <pre><code>@Configuration
  @EnableAerospikeRepositories(basePackageClasses = 
  ContactRepository.class)
  class ApplicationConfig extends AbstractAerospikeConfiguration {
  public @Bean(destroyMethod = "close") AerospikeClient aerospikeClient() {
  
      ClientPolicy policy = new ClientPolicy();
      policy.failIfNotConnected = true;
  
      return new AerospikeClient(policy, "localhost", 3000);
  }
  
  public @Bean AerospikeTemplate aerospikeTemplate() {
      return new AerospikeTemplate(aerospikeClient(), "bar");
  }
  }
  </code></pre>
  
  <p>Even less information could be find in the google. I've already tried to add another repos, like:</p>
  
  <pre><code>    &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;spring-milestone&lt;/id&gt;
          &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Also, you could find example of project <a href="https://github.com/carosys/spring-boot-web-aerospike-application/tree/master/aerospike-spring-boot" rel="noreferrer">here</a>. And guess what? That also won't be built.</p>
  
  <p>I've installed latest <code>Maven</code>, updated repositories, still no result. Maybe I am missing some core dependencies?</p>
  
  <blockquote>
    <p>EDIT:</p>
  </blockquote>
  
  <p>I've added just like any other dependency. Firstly, It wasn't found at all, but after updating <code>Maven</code> that looked OK. However, I still couldn't import needed sources.</p>
  
  <pre><code>        &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-aerospike&lt;/artifactId&gt;
          &lt;version&gt;1.5.0.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>