How to include files outside of a module in a project
已回答
I'm importing a Maven project into IntelliJ. Can I include external files in the project that are not included in those modules?
I want to find and edit external files related to my project in IntelliJ as well.
请先登录再写评论。
Add a new module with the content roots you need.
https://www.jetbrains.com/help/idea/creating-and-managing-modules.html#add-new-module
https://www.jetbrains.com/help/idea/configuring-content-roots.html
Thanks for the answer.
The link was helpful.
Although there are some unnecessary files, I decided to add content root to the existing module.
If you modify the content roots of the modules imported from Maven, they will be reverted on the next Maven project sync/import.
I see. So it's better to create a new module.