I am trying to use IntelliJ with WSL2 but I'm experiencing problems. I created a dummy project with a simple main class printing hello world. I placed the project in my WSL file system. When I try to run/build with IntelliJ, I get this message:
Maven resources compiler: Maven project configuration required for module 'testproject' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.
Why is this happening? I can build the project just fine using maven downloaded with sudo apt get install maven from a WSL2 Ubuntu terminal.
