Skip to content

Spring data aerospike

I would like to work with Aerospike and use Spring Data. I found useful library for my goals here.

However, but adding it to dependencies, this code from sample still could not find dependencies.

@EnableAerospikeRepositories(basePackageClasses = 
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");

Even less information could be find in the google. I’ve already tried to add another repos, like:


Also, you could find example of project here. And guess what? That also won’t be built.

I’ve installed latest Maven, updated repositories, still no result. Maybe I am missing some core dependencies?


I’ve added just like any other dependency. Firstly, It wasn’t found at all, but after updating Maven that looked OK. However, I still couldn’t import needed sources.



That’s pretty strange, but:

  1. It is not in the central:
  2. It is not in spring’s libs-release:
  3. There IS a snapshot in libs-snapshot:
  4. Here the tutorial depends on spring-boot-starter-data-aerospike which has version 0.0.1-SNAPSHOT, and spring-boot-starter-data-aerospike is not in the plugins-release repository:
  5. In their master pom.xml the version is 1.0.1.BUILD-SNAPSHOT which is not 1.5.0.RELEASE and which preceeds it
  6. There are no tags and no releases in their github repository.

So it looks like no public release was ever made, and their recommendation to ‘Add the Maven dependency’ (the one that you added, with version 1.5.0.RELEASE) will just not work.

To use this library in your project, you could make a checkout via git, build the project (mvn install), then use it from your local repository. Sources could be attached to your IDE manually. To build on other machines later, you could distribute the jar you built and use mvn deploy:deploy-file to install it to their local repositories.