IntelliJ 14 Ultimate - Can not add framework

2019-08-12 02:43发布

问题:

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

  1. On the main menu, choose File | Open.
  2. 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