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