maven - maven.elasticsearch.org返回404

标签 maven elasticsearch

我们的Maven依赖于我们的代码依赖于Elastic Search Libraries进行构建/编译的问题。

构建过程在构建时获取了这些库,但是Maven flex 搜索存储库似乎全部脱机。

http://maven.elasticsearch.org/当前返回404,导致其下方的所有内容均不可用,从而导致构建过程失败。

甚至Maven中央仓库用于 flex 屏蔽也返回404的https://repo.maven.apache.org/maven2/org/elasticsearch/plugin/shield/

我已发送电子邮件至support@elastic.co,要求他们重新打开Elastic Repo,还有其他想法为什么此Repo会离线,我将如何进行纠正?中央的本地现场镜像,但是对于我们需要的功能来说感觉有点过头了。

最佳答案

从官方文件here

存储库URL为:https://artifacts.elastic.co/maven/org/elasticsearch/plugin/shield/2.4.6/shield-2.4.6.jar

如果您使用的是maven:

<project ...>

   <repositories>
      <!-- add the elasticsearch repo -->
      <repository>
         <id>elasticsearch-releases</id>
         <url>https://artifacts.elastic.co/maven</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
      ...
   </repositories>
   ...

   <dependencies>
      <!-- add the shield jar as a dependency -->
      <dependency>
         <groupId>org.elasticsearch.plugin</groupId>
         <artifactId>shield</artifactId>
         <version>2.4.6</version>
      </dependency>
      ...
   </dependencies>
   ...

 </project>

关于maven - maven.elasticsearch.org返回404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49389224/

相关文章:

java - Elasticsearch 无法与 Docker 一起运行

ruby-on-rails - ElasticSearch 评分(轮胎 gem )

elasticsearch - 更新成本与在 elasticsearch 中插入

java - 使用 OpenCV 进行 Spring 启动

java - 使用Maven进行Java程序调用

maven - Intellij 不支持 maven-compiler-plugin

java.lang.NoClassDefFoundError

java - Intellij 无法识别的 TestNG 功能

elasticsearch如何在匹配短语中包含同一字段的多个值

elasticsearch - Elasticsearch : General and conditional filters