问题
Why can I not add the maven framework to my module?
回答1:
Maven is not considered as a framework in IntelliJ. If you want to add Maven support to your project, you should open the parent pom.xml
, which will reimport the project as a Maven project.
See the documentation for further detail.
To import a Maven project with default settings
- On the main menu, choose File | Open.
- In the dialog box that opens, select the desired pom.xml file, and click OK. In this case the import is performed automatically, with the settings defined in the Maven Integration dialog.
回答2:
File > Settings > Plugins > Search for Maven and check Maven Integration.
Now when you right-click your solution and add framework support you should see Maven listed
Screenshot
来源:https://stackoverflow.com/questions/32463388/intellij-14-ultimate-can-not-add-framework