<tfoot id='NLpBh'></tfoot>
      <legend id='NLpBh'><style id='NLpBh'><dir id='NLpBh'><q id='NLpBh'></q></dir></style></legend>

      1. <small id='NLpBh'></small><noframes id='NLpBh'>

      2. <i id='NLpBh'><tr id='NLpBh'><dt id='NLpBh'><q id='NLpBh'><span id='NLpBh'><b id='NLpBh'><form id='NLpBh'><ins id='NLpBh'></ins><ul id='NLpBh'></ul><sub id='NLpBh'></sub></form><legend id='NLpBh'></legend><bdo id='NLpBh'><pre id='NLpBh'><center id='NLpBh'></center></pre></bdo></b><th id='NLpBh'></th></span></q></dt></tr></i><div id='NLpBh'><tfoot id='NLpBh'></tfoot><dl id='NLpBh'><fieldset id='NLpBh'></fieldset></dl></div>

        • <bdo id='NLpBh'></bdo><ul id='NLpBh'></ul>

        如何解析/解压缩/解压缩 Nexus 生成的 Maven 存储库索引

        How to parse/unzip/unpack Maven repository indexes generated by Nexus(如何解析/解压缩/解压缩 Nexus 生成的 Maven 存储库索引)
            <tbody id='DQBDD'></tbody>

          <tfoot id='DQBDD'></tfoot>
          • <small id='DQBDD'></small><noframes id='DQBDD'>

              <bdo id='DQBDD'></bdo><ul id='DQBDD'></ul>
              <legend id='DQBDD'><style id='DQBDD'><dir id='DQBDD'><q id='DQBDD'></q></dir></style></legend>

              <i id='DQBDD'><tr id='DQBDD'><dt id='DQBDD'><q id='DQBDD'><span id='DQBDD'><b id='DQBDD'><form id='DQBDD'><ins id='DQBDD'></ins><ul id='DQBDD'></ul><sub id='DQBDD'></sub></form><legend id='DQBDD'></legend><bdo id='DQBDD'><pre id='DQBDD'><center id='DQBDD'></center></pre></bdo></b><th id='DQBDD'></th></span></q></dt></tr></i><div id='DQBDD'><tfoot id='DQBDD'></tfoot><dl id='DQBDD'><fieldset id='DQBDD'></fieldset></dl></div>
                1. 本文介绍了如何解析/解压缩/解压缩 Nexus 生成的 Maven 存储库索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经从 http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.gz

                  我想列出这些索引文件中的工件信息(例如 groupId、artifactId、version).我已经读到有一个高级API.看来我必须使用以下 maven 依赖项.但是,我不知道要使用的入口点是什么(哪个类?)以及如何使用它来访问这些文件:

                  I would like to list the artifacts information from these index files (groupId, artifactId, version for example). I have read that there is a high level API for that. It seems that I have to use the following maven dependency. However, I don't know what is the entry point to use (which class?) and how to use it to access those files:

                  <dependency>
                      <groupId>org.sonatype.nexus</groupId>
                      <artifactId>nexus-indexer</artifactId>
                      <version>3.0.4</version>
                  </dependency>
                  

                  推荐答案

                  看看 https://github.com/cstamas/maven-indexer-examples 项目.

                  简而言之:您不需要手动下载 GZ/ZIP(新/旧格式),它会为您完成索引器(此外,如果可能,它还会为您处理增量更新).

                  In short: you dont need to download the GZ/ZIP (new/legacy format) manually, it will indexer take care of doing it for you (moreover, it will handle incremental updates for you too, if possible).

                  GZ 是新"格式,独立于 Lucene 索引格式(因此,独立于 Lucene 版本),仅包含数据,而 ZIP 是旧"格式,它实际上是简单的 Lucene 2.4.x 索引压缩.目前没有发生数据内容更改,但计划在未来发生.

                  GZ is the "new" format, independent of Lucene index-format (hence, independent of Lucene version) containing data only, while the ZIP is "old" format, which is actually plain Lucene 2.4.x index zipped up. No data content change happens currently, but is planned in future.

                  正如我所说,两者之间没有数据内容差异,但某些字段(如您所见)已编入索引但未存储在索引中,因此,如果您使用 ZIP 格式,您将让它们可搜索,但不可检索.

                  As I said, there is no data content difference between two, but some fields (like you noticed) are Indexed but not stored on index, hence, if you consume the ZIP format, you will have them searchable, but not retrievable.

                  这篇关于如何解析/解压缩/解压缩 Nexus 生成的 Maven 存储库索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)

                2. <legend id='YK4mo'><style id='YK4mo'><dir id='YK4mo'><q id='YK4mo'></q></dir></style></legend>
                    <tbody id='YK4mo'></tbody>

                        <bdo id='YK4mo'></bdo><ul id='YK4mo'></ul>
                        <i id='YK4mo'><tr id='YK4mo'><dt id='YK4mo'><q id='YK4mo'><span id='YK4mo'><b id='YK4mo'><form id='YK4mo'><ins id='YK4mo'></ins><ul id='YK4mo'></ul><sub id='YK4mo'></sub></form><legend id='YK4mo'></legend><bdo id='YK4mo'><pre id='YK4mo'><center id='YK4mo'></center></pre></bdo></b><th id='YK4mo'></th></span></q></dt></tr></i><div id='YK4mo'><tfoot id='YK4mo'></tfoot><dl id='YK4mo'><fieldset id='YK4mo'></fieldset></dl></div>
                        1. <small id='YK4mo'></small><noframes id='YK4mo'>

                          1. <tfoot id='YK4mo'></tfoot>