IntelliJ IDEA:“索引 Maven 存储库"列表 - 如何在此列表中添加远程 Maven 存储库? [英] IntelliJ IDEA: "Indexed Maven Repositories" list - how to add remote maven repository in this list?

查看:52
本文介绍了IntelliJ IDEA:“索引 Maven 存储库"列表 - 如何在此列表中添加远程 Maven 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解如何在 IntelliJ IDEA 的索引 Maven 存储库"列表中获取存储库.

I'm having trouble understanding how to get repositories in the "Indexed Maven Repositories" list of the IntelliJ IDEA.

在我的一个项目中,我在此列表中有两个存储库:一个本地存储库和一个(主)远程存储库(请参见下面的附加屏幕截图).在其他项目(使用 AppFuse 模板创建)中,我的列表中只有一个(本地)repo.

In one my project I have two repos in this list: one local and one (main) remote (see attached screenshot below). And in other project (created using AppFuse template) I have only one (local) repo in list.

我试图在 pom.xml 文件和 settings.xml 文件中添加 repos,但是 repos 没有出现在这个魔法"列表中.

I'm tried to add the repos in pom.xml file and in settings.xml file, but the repos did not appear in this "magic" list.

这意味着:

  1. 我在下拉列表中看不到工件 ID 和工件版本 (Ctrl+SPACE)
  2. IDEA 找不到必要的工件(或其版本).它只在我的本地仓库中查找

<小时>

IntelliJ IDEA 版本:11.0


Version of IntelliJ IDEA: 11.0

Maven 版本:2.2.1

Version of Maven: 2.2.1

推荐答案

此列表会从您的 pom 文件中指定的存储库(或从父项目的 pom 和 settings.xml 继承)自动更新.

This list is updated automatically from the repositories specified in your pom files (or inherited from parent project's pom and settings.xml).

如果您打开一个指定了一些额外存储库的项目,您将在此列表中看到它们并且能够更新索引.

If you open a project that has some additional repositories specified, you'll see them in this list and will be able to update the indices.

这篇关于IntelliJ IDEA:“索引 Maven 存储库"列表 - 如何在此列表中添加远程 Maven 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆