What is an acceptable folder structure for Java projects in IntelliJ IDEA?
Multiple sources (like this) suggest the following structure:
.
│ .idea
└─
That is the basic folder structure of a maven project. IntelliJ usually recognizes this and sets up sensical defaults for you.
If it didn't (or if it did but you modified them afterwards), you need to set up your java folder as the sources folder (i.e. the folder that contains the source code).
For this, you need to:
File > Project Structure src/main/java folder and select itSourcesRepeat for test folder (mark as 'Tests'), resources (mark as 'Resources'), test-resources (mark as 'Test Resources'), etc.