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.
@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");
}
}
Even less information could be find in the google. I've already tried to add another repos, like:
<repositories>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
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?
EDIT:
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.
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-aerospike</artifactId>
<version>1.5.0.RELEASE</version>
</dependency>
spring-data-aerospike
dependency? Could you show the related pom.xml snippet? – Thynne