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

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

    <tfoot id='ZTxMW'></tfoot>

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

      时间:2023-09-30

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

        <tfoot id='5Yafe'></tfoot>

            <legend id='5Yafe'><style id='5Yafe'><dir id='5Yafe'><q id='5Yafe'></q></dir></style></legend>
          • <small id='5Yafe'></small><noframes id='5Yafe'>

                <tbody id='5Yafe'></tbody>
              • 本文介绍了如何解析/解压缩/解压缩 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 存储库索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何使用“like"查询 lucene操作员? 下一篇:lucene 在查询中获得匹配的术语

                相关文章

                最新文章

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

                    <small id='RdZMP'></small><noframes id='RdZMP'>

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

                    <tfoot id='RdZMP'></tfoot>