I found a pretty old post with this question but unfortunately he didn't get any help. I hope someone can assist me.
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.
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?
In the Project tool window Alt+1 , right-click the module to which you want to add a facet, and select Add Framework Support. Select the necessary framework from the list. Depending on your choice, you might be prompted to configure additional settings (for example, to configure a library).
Enable Spring support in IntelliJ IDEAPress Ctrl+Alt+S to open the IDE settings and select Plugins. Open the Installed tab, search for Spring and make sure that the checkboxes next to all relevant plugins are selected.
Import an existing moduleFrom the main menu, select File | New | Module from Existing Sources. In the dialog that opens, specify the path the . iml file of the module that you want to import, and click Open. By doing so, you are attaching another module to the project without physically moving any files.
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
such as VI or Notepad, create a pom.xml
in the root directory. Better yet, use a Maven Archetype to generate your pom.xml
.pom.xml
and follow the prompts.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.I know it is a little bit to late but I just post it because it is still an possible issue: You need to open YourProjectName.iml and make sure that the type (<module type="JAVA_MODULE" version="4">
) is JAVA_MODULE and not something else!(In my case it was WEB_MODULE)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With