问题描述
我发现一个很老的帖子,但与此问题有关他没有得到任何帮助.我希望有人能帮助我.
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
- 关闭IntelliJ
- 在命令外壳中,克隆您的Github存储库.
- 使用
IntelliJ
外部的编辑器(例如VI或记事本),在根目录中创建pom.xml
.更好的是,使用 Maven原型生成您的. - 现在打开IntelliJ.选择文件,新建,从现有源进行项目.导航到您的
pom.xml
并按照提示进行操作. - 我建议检查递归搜索项目并自动导入Maven项目.
- 完成项目创建.
- 现在,将依赖项添加到您的
pom.xml
通过dependencies
标记.参见 Maven依赖项.只要Intellij可以在本地计算机,网络或Internet上看到Maven存储库,它就会自动对您添加的依赖项做出反应.
- Close IntelliJ
- In a command shell, clone your Github repository.
- Using an editor external to
IntelliJ
such as VI or Notepad, create apom.xml
in the root directory. Better yet, use a Maven Archetype to generate yourpom.xml
. - Now open IntelliJ. Choose File, New, Project From Existing Sources. Navigate to your
pom.xml
and follow the prompts. - I recommend checking Search for projects recursively and Import Maven projects automatically.
- Finish the project creation.
- Now, add dependencies to your
pom.xml
via thedependencies
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中添加框架支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!