nexus - 如何为 nexus3 原始存储库启用目录列表?
问题描述
在过去,我能够查看raw
我将 javadoc 站点上传到的存储库的内容(通过dav:http://
using 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
有没有办法恢复目录列表?
这个关闭的问题说nexus3支持它,但我不知道如何。
解决方案
我发现了这个问题。存储库 浏览器 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/
(它也不支持目录列表)