本文介绍了无法在IntelliJ 14 Ultimate中添加框架支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现一个很老的帖子,但与此问题有关他没有得到任何帮助.我希望有人能帮助我.

I found a pretty old post with this question but unfortunately he didn't get any help. I hope someone can assist me.

我在GitHub上创建了一个仓库.将其克隆到计算机后,我尝试添加以下框架支持:Maven,JSF,EJB,CDI等.我知道我可以手动添加文件.但是,我想使用IDE所提供的功能.

I created a repo at GitHub. After cloning it to my computer I tried to add the following framework support: Maven, JSF, EJB, CDI, etc. I know I could add the files manually. But, I want to use what the IDE has to offer.

但是,显示的唯一框架显示为SQL ,它与 stackoverflow 其文档.有人遇到过同样的问题并使它工作吗?

However, the only framework showing up is SQL, which is different from this post from stackoverflow and from their documentation.Has anyone had this same problem and got it working?

推荐答案

Intellij对Maven pom.xml文件中的更改做出反应. Maven对您的IntelliJ项目模块设置中的更改没有反应.

Intellij reacts to changes in your Maven pom.xml file. Maven does not react to changes in your IntelliJ project module settings.

您应在此处执行的步骤是

The steps that you should follow here are

  1. 关闭IntelliJ
  2. 在命令外壳中,克隆您的Github存储库.
  3. 使用IntelliJ外部的编辑器(例如VI或记事本),在根目录中创建pom.xml.更好的是,使用 Maven原型生成您的.
  4. 现在打开IntelliJ.选择文件新建从现有源进行项目.导航到您的pom.xml并按照提示进行操作.
  5. 我建议检查递归搜索项目自动导入Maven项目.
  6. 完成项目创建.
  7. 现在,将依赖项添加到您的pom.xml通过dependencies标记.参见 Maven依赖项.只要Intellij可以在本地计算机,网络或Internet上看到Maven存储库,它就会自动对您添加的依赖项做出反应.
  1. Close IntelliJ
  2. In a command shell, clone your Github repository.
  3. Using an editor external to IntelliJ such as VI or Notepad, create a pom.xml in the root directory. Better yet, use a Maven Archetype to generate your pom.xml.
  4. Now open IntelliJ. Choose File, New, Project From Existing Sources. Navigate to your pom.xml and follow the prompts.
  5. I recommend checking Search for projects recursively and Import Maven projects automatically.
  6. Finish the project creation.
  7. Now, add dependencies to your pom.xml via the dependencies tag. See Maven Dependencies. Intellij will automatically react to dependencies that you add as long as it can see a Maven Repository on your local machine or on your network or on the Internet.

这篇关于无法在IntelliJ 14 Ultimate中添加框架支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 05:44