Missing artifact when trying to add spring-data

I am trying to add a spring data dependency to my start spring boot project, but I get an error: Missing artifact org.springframework.data:spring-data-jdbc-ext:jar:1.0.0.RELEASE

Here is my pom.xml file. What am I missing here?

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <modelVersion>4.0.0</modelVersion>
  <groupId>com.test</groupId>
  <artifactId>myApp</artifactId>
  <version>0.0.1-SNAPSHOT</version>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.0.0.RC1</version>
    </parent>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.thymeleaf</groupId>
            <artifactId>thymeleaf-spring4</artifactId>
        </dependency>
            <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-jdbc-ext</artifactId>
        <version>1.0.0.RELEASE</version>
    </dependency>
    </dependencies>

    <properties>
        <start-class>com.test.Application</start-class>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>spring-milestone</id>
            <url>http://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-milestone</id>
            <url>http://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
</project>
+4
source share
1 answer

For some reason, the documentation on the Spring Data JDBC Extensions website is incorrect (or the distribution is wrong!).

According to this page, you really need to include the dependency you mention.

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

However, if you look at the spring repository for this artifact, it contains a zip file with a release instead of a jar or a pom file.

spring -data-jdbc-ext , .

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jdbc-core</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-oracle</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

Oracle, .

1.1.0.M1 (/ ), spring Data. , 1.0.0.RELEASE, spring Data.

+3

Source: https://habr.com/ru/post/1524588/


All Articles