Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are some maven projects in IntelliJ grayed out?

Why are some maven projects in IntelliJ greyed out?

enter image description here

like image 851
powder366 Avatar asked Mar 24 '17 16:03

powder366


People also ask

Why Maven is not showing in IntelliJ?

In the file menu select settings -> plugins. search for maven, select maven, select enable. Restart intellij. Once restarted you will now have the option to start new maven project and maven functionality will be accessible in all your previous projects.

Why POM is ignored in IntelliJ?

The root cause was that the pom. xml file was ignored (Settings - Build, Execution, Deployment - Maven - Ignored Files). Thus, updates to this file pulling in a new version of a dependency did not trigger anything meaningful in IntelliJ IDEA (causing compilation issues).


Video Answer


2 Answers

Seems images are better way to answer this question.

  1. Projects are greyed out when you ignore them in your IntelliJ workspace.

Ignored Projects

  1. To add those projects or modules back in your workspace, right click on them and click on unignore projects as shown in below screenshot.

Ignored Projects back in Workspace

  1. Alternatively, you can also go to File - Settings -> Build, execution and deployment -> Build Tools -> Maven -> Ignored Files, now select whichever projects/modules you may wish to retain in your IntelliJ workspace.

enter image description here

Feel free to ping in comments if more clarification required. Happy coding.

like image 186
Pratik Ambani Avatar answered Sep 18 '22 17:09

Pratik Ambani


Right click on the pom -> maven -> unignore. Then right click on pom -> maven -> reload project.

Seems some kind of bug when you open a child subdirectory then open the parent in IntelliJ.

like image 33
rogerdpack Avatar answered Sep 18 '22 17:09

rogerdpack