【问题标题】:How can I enable directory listing for a nexus3 raw repository?如何为 nexus3 原始存储库启用目录列表?
【发布时间】:2020-07-19 13:26:57
【问题描述】:

过去,我能够查看我的 raw 存储库的内容,我将我的 javadoc 站点上传到该存储库(通过 dav:http:// 使用 mvn site-deploy):

例如从浏览器访问:http://myserver/nexus/content/sites/my-raw-repository/ 将列出子目录。

现在(管理员升级到 nexus 3.20 后)目录列表不起作用,我必须明确请求资源页面,例如:

http://myserver/nexus/content/sites/my-raw-repository/artifact-site-name/1.0.0/apidocs/index.html

有没有办法恢复目录列表?

This closed issue 说 nexus3 支持它,但我不知道如何。

【问题讨论】:

    标签: nexus nexus3 maven-site-plugin


    【解决方案1】:

    我发现了问题。 存储库浏览器 url 现在不同了。

    content/sites 已变为:service/rest/repository/browse

    (旧路径仍然可用,但没有目录列表。根据以下发现,我猜它已被弃用)

    我去了browse left-menu-option -> select the raw repository -> 点击了Html View 链接,它把我带到了正确的位置。

    新的链接现在是: http://myserver/nexus/service/rest/repository/browse/my-raw-repository/

    值得注意的一点是,现在当到达实际的资源文件(例如 html)时,
    资源文件链接不同: http://myserver/nexus/repository/my-raw-repository/path/to/the/htmlpage.html

    所以不是service/rest/repository/browse/my-raw-repository/,而是repository/my-raw-repository/(也不支持目录列表)

    【讨论】:

      猜你喜欢
      • 2017-04-25
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      • 1970-01-01
      • 1970-01-01
      • 2017-04-23
      • 1970-01-01
      • 2019-11-03
      相关资源
      最近更新 更多