1

我有一个安装了柯南插件的关系服务器。我可以使用柯南客户端连接到 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服务器的通信以发送搜索查询等等。

4

0 回答 0