Search code examples
javamavenspring-data-jdbc

spring-data-jdbc dependency won't work on pom.xml


I'm following this guide spring-data-jdbc-ext

and i'm trying to set this dependency on my pom.xml

<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jdbc</artifactId> <version>1.0.0.M2</version> </dependency>

but i ended up on this error

No such file or directory found on the repository using this maven dependency (provided on the quick start guide).

I'm using Maven version 4.0.0


Solution

  • Add this repository to your pom:

    <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>