Maven spring-未找到数据弹性搜索依赖项
Maven spring-data-elasticsearch dependency Not Found
我有一个 spring 启动应用程序,我想为其使用依赖项 spring-data-elasticsearch。我在我的服务器上使用 Elasticsearch 的最新版本之一 (v5.4.x) 所以我不得不使用 spring-data-elasticsearch[=30= 的最新快照] (3.0.0.BUILD-快照).
根据 git 页面(下方 link):
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/README.md
我必须在我的 pom.xml 中声明一个特殊的存储库,该存储库位于该特定版本的依赖项中,如下所示:
<repositories>
<repository>
<id>spring-libs-snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
<dependencies>
<!-- ELK -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.0.0.BUILD-SNAPSHOT</version>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
但是我的 pom.xml 出现以下错误:
Missing artifact org.springframework.data:spring-data-elasticsearch:jar:3.0.0.BUILD-SNAPSHOT
有人知道问题出在哪里吗? 2 小时以来,我一直在拔头发。
谢谢!
您可能需要将 Spring 快照存储库添加到您的 pom.xml
<repositories>
<repository>
<id>repository.spring.snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/snapshot</url>
</repository>
</repositories>
感谢您的回复,但我感觉自己像个傻瓜。在我的公司,我们使用一个部署了所有 repos 的 nexus,所以我也必须在我的 nexus 中添加关于 repos 的信息。
对于给您带来的不便,我们深表歉意。
我有一个 spring 启动应用程序,我想为其使用依赖项 spring-data-elasticsearch。我在我的服务器上使用 Elasticsearch 的最新版本之一 (v5.4.x) 所以我不得不使用 spring-data-elasticsearch[=30= 的最新快照] (3.0.0.BUILD-快照).
根据 git 页面(下方 link):
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/README.md
我必须在我的 pom.xml 中声明一个特殊的存储库,该存储库位于该特定版本的依赖项中,如下所示:
<repositories>
<repository>
<id>spring-libs-snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
<dependencies>
<!-- ELK -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.0.0.BUILD-SNAPSHOT</version>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
但是我的 pom.xml 出现以下错误:
Missing artifact org.springframework.data:spring-data-elasticsearch:jar:3.0.0.BUILD-SNAPSHOT
有人知道问题出在哪里吗? 2 小时以来,我一直在拔头发。
谢谢!
您可能需要将 Spring 快照存储库添加到您的 pom.xml
<repositories>
<repository>
<id>repository.spring.snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/snapshot</url>
</repository>
</repositories>
感谢您的回复,但我感觉自己像个傻瓜。在我的公司,我们使用一个部署了所有 repos 的 nexus,所以我也必须在我的 nexus 中添加关于 repos 的信息。
对于给您带来的不便,我们深表歉意。