intellij icon over project files

前端 未结 3 1803
生来不讨喜
生来不讨喜 2021-01-31 09:26

intellij has placed what look like no entry signs over my java files (red circles with a line through) searched around but cannot find why? Would anyone know please.

It\

3条回答
  •  执笔经年
    2021-01-31 09:56

    For maven projects:

    In my case I had to import the project through Maven. Some modules were missing (they weren't specified in the root pom) so adding those as maven projects fixed the issue.

    click on the 'plus' icon on the right hand side maven menu and then add the project. This imported all sources / structure automatically.

提交回复
热议问题