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

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

问题描述

我无法理解如何在IntelliJ IDEA的Indexed Maven Repositories列表中获取存储库。

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

在我的项目中,我在此列表中有两个回购:一个本地和一个(主)远程(见下面的附件截图)。在其他项目中(使用AppFuse模板创建)我在列表中只有一个(本地)仓库。

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文件中添加repos,在settings.xml文件中,但是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. 我无法在下拉列表中看到artifactId和工件版本( Ctrl + SPACE

  2. IDEA无法找到必要的工件(或他的版本)。它只在我当地的仓库中查找

  1. I can't see artifactId and versions of artifacts in dropdownlist (Ctrl+SPACE)
  2. IDEA can't find the necessary artifacts (or his versions). It is looking only in my local repo






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:“Indexed Maven Repositories” list - 如何在此列表中添加远程maven存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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