Java IntelliJ IDEA 显示未找到插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24484776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IntelliJ IDEA shows plugin not found
提问by awfun
I'm trying to tune IntelliJ IDEA. In the company I now work they use Nexus as a store for Maven plugins. In maven settings file (.m2/settings.xml) there are Nexus repositories :
我正在尝试调整 IntelliJ IDEA。在我现在工作的公司中,他们使用 Nexus 作为 Maven 插件的商店。在 maven 设置文件 (.m2/settings.xml) 中有 Nexus 存储库:
.../nexus/content/repositories/releases
.../nexus/content/repositories/releases-temporal/
.../nexus/content/repositories/snapshots
In IDEA I see errors like:
在 IDEA 中,我看到如下错误:
Plugin '''org.apache.maven.plugins:maven-project-info-reports-plugin:2.7''' not found
Inspects a Maven model for resolution problems.
Though Nexus contains it as I can see through it's web interface.
虽然 Nexus 包含它,我可以通过它的网络界面看到。
What might be the problem?
可能是什么问题?
回答by andrel
IDEA should normally manage your Maven dependencies for you (as long as your pom.xml are correct.)
IDEA 通常应该为您管理您的 Maven 依赖项(只要您的 pom.xml 是正确的。)
When your POM-file changes, IDEA will display a notification-window and ask if you would like to download dependencies (this can be easy to miss).
当您的 POM 文件更改时,IDEA 将显示一个通知窗口并询问您是否要下载依赖项(这很容易错过)。
Or, if IDEA is configured with automatic Maven imports (File > Settings > Maven > Importing -> Import Maven projects manually), this should happen automatically.
或者,如果 IDEA 配置了自动 Maven 导入(文件 > 设置 > Maven > 导入 - > 手动导入 Maven 项目),这应该会自动发生。
If your problem persists, you can delete and re-import your IDEA-project:
如果您的问题仍然存在,您可以删除并重新导入您的 IDEA 项目:
- Close IDEA.
- Remove "*.iml" and ".idea"-directories.
- Run "mvn clean install" from the command-line.
- Re-import your project into IDEA.
- 关闭想法。
- 删除“*.iml”和“.idea”目录。
- 从命令行运行“mvn clean install”。
- 将您的项目重新导入 IDEA。
This will normally solve these types of tricky problems.
这通常会解决这些类型的棘手问题。
Also worth checking: If you use Maven, your IDEA (and Eclipse) project files should not need to be checked into version control. If you check out someone elses *.iml-files or .idea-folder, problems can occur.
同样值得检查:如果您使用 Maven,则您的 IDEA(和 Eclipse)项目文件不需要检查到版本控制中。如果您查看其他人的 *.iml-files 或 .idea-folder,可能会出现问题。
回答by Do Nhu Vy
You maybe try this solution:
你也许试试这个解决方案:
Close your IntelliJ IDEA. Backup IDE setting files (1). Then, delete all files in directory "config":
关闭您的 IntelliJ IDEA。备份 IDE 设置文件 ( 1)。然后,删除目录“config”中的所有文件:
<User home>\.IntelliJIdeaXX\config
(on Windows, for example: C:\Users\user_name.IntelliJIdea13\config)
(在 Windows 上,例如:C:\Users\user_name.IntelliJIdea13\config)
Go to menu File \ Settings or press Ctrl + Alt + Shift, in group Project Settings, choose Maven \ Repositories, press button Add "Artifactory or Nexus Service URLs", choose:
转到菜单 File \ Settings 或按 Ctrl + Alt + Shift,在组 Project Settings 中,选择 Maven \ Repositories,按按钮添加“Artifactory or Nexus Service URLs”,选择:
https://repository.jboss.org/nexus/service/local
Then update this repository, you will wait some minutes for indexing repository. Then try what you want.
然后更新此存储库,您将等待几分钟以索引存储库。然后尝试你想要的。
1http://www.jetbrains.com/idea/webhelp/project-and-ide-settings.html
1 http://www.jetbrains.com/idea/webhelp/project-and-ide-settings.html