Java 将Maven存储库添加到settings.xml

Java 将Maven存储库添加到settings.xml,java,maven,m2e,Java,Maven,M2e,我正在尝试将存储库添加到settings.xml文件中,以便在我正在处理的项目中使用该存储库中的库。这是我当前的settings.xml文件 <settings> . . <profiles> <profile> <id>standard-extra-repos</id> <activation> <activeByDefault>true</a

我正在尝试将存储库添加到settings.xml文件中,以便在我正在处理的项目中使用该存储库中的库。这是我当前的settings.xml文件

<settings>
  .
  .

  <profiles>
    <profile>
      <id>standard-extra-repos</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      ...
      <repositories>

      <repository>
          <id>xuggle repo</id>
          <name>Xuggler Repository</name>
          <url>http://xuggle.googlecode.com/svn/trunk/repo/share/java/</url>
          <layout>default</layout>
          <releases><enabled>true</enabled><updatePolicy>never</updatePolicy></releases>
          <snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
      ...
      </pluginRepositories>

    </profile>
  </profiles>
  .
</settings>

.
.
标准额外回购
真的
...
xuggle回购
Xuggler存储库
http://xuggle.googlecode.com/svn/trunk/repo/share/java/
违约
特鲁埃诺
特鲁埃诺
...
.

我想将Xugler存储库添加到我的settings.xml中,以便在M2E(Maven 2 Eclipse)中搜索适当的依赖项,并将它们添加到我的项目中。当我转到windo->show view->Maven->Maven存储库时,xuggle存储库是可见的,但完全为空。我需要的罐子找不到了

推荐的方法是使用诸如Nexus之类的Maven存储库管理器来管理您需要的存储库

请参见此处如何配置设置文件:

为了支持从m2e浏览远程存储库,存储库必须提供m2e索引。给你