Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Nexus公共存储库索引未拾取未编制索引的存储库_Maven_Nexus - Fatal编程技术网

Maven Nexus公共存储库索引未拾取未编制索引的存储库

Maven Nexus公共存储库索引未拾取未编制索引的存储库,maven,nexus,Maven,Nexus,我在nexus中设置了一个公共存储库,其中包含我们希望访问的存储库组。然后,我们将其作为Eclipse中用于开发和构建的主要索引 我在这个公共存储库中添加了几个ZK存储库——这些repo没有索引,无法被Nexus删除。我想这会阻止它们中的人工制品被发现。我在Nexus和Eclipse中重建了public的索引,但运气不好 我可以在eclipse中的setting.xml中添加存储库吗?目前看起来如下所示: <?xml version="1.0" encoding="UTF-8"?>

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

我在这个公共存储库中添加了几个ZK存储库——这些repo没有索引,无法被Nexus删除。我想这会阻止它们中的人工制品被发现。我在Nexus和Eclipse中重建了public的索引,但运气不好

我可以在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>

关系
用户名
xxxx
关系
*
http://:8400/nexus/content/groups/public
关系
中心的
http://central
真的
真的
中心的
http://central
真的
真的
关系

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