I am trying to switch from Eclipse to IntelliJ due to a bug in coverage tests in Eclipse, so I tried importing my Eclipse project, which also uses Maven. After importing it seemed so far so good.
However, when inspecting the code there were errors everywhere about unresolved class names due to missing packages. I found out that the issue was that since my Maven project has a structure src/main, IntelliJ expected the packages to be main.old_packageinstead of what I just had, which worked perfectly in Eclipse.
I do not what that main package, it's just a folder, not a package. I also have an Application class under the main folder, just to try project functionalities as I develop it, but it is not under any package. However, the IDE demands a main package again.
I have been trying to work this out for a whole day but I just can't find a solution. I am sorry if this is a trivial question, but I don't know what else to try.
What can I do?
PS: I did solve it just so the project could compile, simply by prepending main or test to the packages under the src/main and src/test respectively, but this was just a temporary patch, I don't actually want to have a main or test package.