我有一个安装了柯南插件的nexus服务器。我可以使用柯南客户端连接到nexus远程。除了柯南搜索以外,所有命令似乎都可以正常工作。 如果我尝试上传某些内容,则可以正常工作:
conan upload OpenSSL/1.0.2l@conan/stable --all -r nxrm-conan-hosted
我得到以下输出都很好
Uploading OpenSSL/1.0.2l@conan/stable to remote 'nxrm-conan-hosted'
Uploading conanmanifest.txt
[==================================================] 58B/58B
Uploading conanfile.py
[==================================================] 18.1KB/18.1KB
Uploaded conan recipe 'OpenSSL/1.0.2l@conan/stable' to 'nxrm-conan-hosted': http://localhost:8081/repository/conan-hosted/
Uploading package 1/1: 2b79e5c38fa00890dc9d36d4699d1add085ac085
Requesting upload urls...Done!
Uploading conanmanifest.txt
[==================================================] 4.7KB/4.7KB
Uploading conaninfo.txt
[==================================================] 1.2KB/1.2KB
Uploading conan_package.tgz
[==================================================] 2.9MB/2.9MB
其中nxrm-conan-hosted的设置如下:
conan remote add nxrm-conan-hosted http://localhost:8081/repository/conan-hosted/ false
但是,当我搜索某些内容时:
conan search -r nxrm-conan-hosted
我得到以下404:
ERROR: <!DOCTYPE html>
<html lang="en">
<head>
<title>404 - Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--[if lt IE 9]> <script>(new Image).src="http://localhost:8081/favicon.ico?3.16.0-01"</script> <![endif]-->
<link rel="icon" type="image/png" href="http://localhost:8081/favicon-32x32.png?3.16.0-01" sizes="32x32">
<link rel="mask-icon" href="http://localhost:8081/safari-pinned-tab.svg?3.16.0-01" color="#5bbad5">
<link rel="icon" type="image/png" href="http://localhost:8081/favicon-16x16.png?3.16.0-01" sizes="16x16">
<link rel="shortcut icon" href="http://localhost:8081/favicon.ico?3.16.0-01">
<meta name="msapplication-TileImage" content="http://localhost:8081/mstile-144x144.png?3.16.0-01">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://localhost:8081/static/css/nexus-content.css?3.16.0-01"/>
</head>
<body>
<div class="nexus-header">
<a href="http://localhost:8081">
<div class="product-logo"> <img src="http://localhost:8081/static/images/nexus.png?3.16.0-01" alt="Product logo"/> </div>
<div class="product-id">
<div class="product-id__line-1"> <span class="product-name">Nexus Repository Manager</span> </div>
<div class="product-id__line-2"> <span class="product-spec">OSS 3.16.0-01</span> </div>
</div>
</a>
</div>
<div class="nexus-body">
<div class="content-header"> <img src="http://localhost:8081/static/rapture/resources/icons/x32/exclamation.png?3.16.0-01" alt="Exclamation point" aria-role="presentation"/> <span class="title">Error 404</span> <span class="description">Not Found</span> </div>
<div class="content-body">
<div class="content-section"> Not Found </div>
</div>
</div>
</body>
</html>
[Remote: nxrm-conan-hosted]
我在搜索方面发现了这个问题: https://github.com/sonatype-nexus-community/nexus-repository-conan/issues/13
似乎尚未在插件中实现搜索功能。我对插件的语言并不完全熟悉。在这方面,我想就如何通过创建必要的路由,在何处放置那些路由,与nexus服务器进行通信以发送搜索查询等所有步骤来设置搜索端点进行逐步说明。 >