Intellij Open File Resource ( Ignore target folder )

前端 未结 2 1811
星月不相逢
星月不相逢 2021-02-18 18:53

When I use the command + shift + o command I get this popup:

\"enter

The problem

相关标签:
2条回答
  • 2021-02-18 19:16

    Make sure that the target folder is excluded in the Project Structure | Modules:

    enter image description here


    It should have been excluded automatically since it is a maven project (I assume).

    0 讨论(0)
  • 2021-02-18 19:21

    I have done what @maba recommended myself but it comes back whenever mvn clean deletes a directory that IntelliJ is tracking as an ignored directory, IntelliJ seems unable to remember that it was ignoring that directory. Perhaps it sticks a configuration file in the target directory it's trying to ignore? In any case, this answer worked for me even after I ran a mvn clean.

    Intellij IDEA. Always show maven's `target` directory

    0 讨论(0)
提交回复
热议问题