Nexus公共存储库索引不包含未索引的存储库

问题描述:

我在nexus中建立了一个公共存储库,其中包含我们希望访问的存储库组。然后,我们将此用作我们用于开发的Eclipse和用于构建的Bamboo的主要索引。Nexus公共存储库索引不包含未索引的存储库

我在这个公共仓库中添加了几个ZK仓库 - 这些仓库没有索引,并且无法被Nexus抓取。我认为这会防止找到它们中的伪影。我已经在Nexus和Eclipse中重建了公共索引,但没有运气。

我可以在eclipse中的setting.xml中添加存储库吗?目前,这看起来如下所示:

<?xml version="1.0" encoding="UTF-8"?> 
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <servers> 
    <server> 
     <id>nexus</id> 
     <username>username</username> 
     <password>xxxx</password> 
    </server> 
    </servers> 
    <mirrors> 
    <mirror> 
     <!--This sends everything else to /public --> 
     <id>nexus</id> 
     <mirrorOf>*</mirrorOf> 
     <url>http://<ip>:8400/nexus/content/groups/public</url> 
    </mirror> 
    </mirrors> 
    <profiles> 
    <profile> 
     <id>nexus</id> 
     <!--Enable snapshots for the built in central repo to direct --> 
     <!--all requests to nexus via the mirror --> 
     <repositories> 
     <repository> 
      <id>central</id> 
      <url>http://central</url> 
      <releases><enabled>true</enabled></releases> 
      <snapshots><enabled>true</enabled></snapshots> 
     </repository> 
     </repositories> 
    <pluginRepositories> 
     <pluginRepository> 
      <id>central</id> 
      <url>http://central</url> 
      <releases><enabled>true</enabled></releases> 
      <snapshots><enabled>true</enabled></snapshots> 
     </pluginRepository> 
     </pluginRepositories> 
    </profile> 
    </profiles> 
    <activeProfiles> 
    <!--make the profile active all the time --> 
    <activeProfile>nexus</activeProfile> 
    </activeProfiles> 
</settings> 

搜索索引是可选的存储库功能。它们不用于工件检索,它们用于支持UI中的交互式搜索。 Nexus将能够毫无问题地从这些代理存储库中提取工件。当工件从远程下载到代理库的磁盘缓存中时,它们将被添加到本地搜索索引中。