Error: Maven project configuration required
Answered
I tired the example from "https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application" and get following error at compile :
Maven resources compiler: Maven project configuration required for module 'JavaEEHelloWorld' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.
IntelliJ IDEA 2023.1.2 (Ultimate Edition)
JDK 20
JDK 20
Please sign in to leave a comment.
Hi Peter,
Where are the project files and JDK itself stored? Do you use WSL?
How did you compile the project exactly: via main menu -> Build -> Build Project or Maven tool window -> 'compile' task?
Does it make a difference if you use a different version of the JDK?
Please collect the idea.log and build.log files (can be found in the log directory), upload them to https://uploads.jetbrains.com and provide the generated upload id.
Actually it was my mistake, As I did some "research", I saw that I chose "REST service" as template and not "WEB application".
I started new project, with correct settings and it all works as it supposed to.
I can't get past this. Bare bones POM. Parent pom project. “imported” (opened). Builds fine. But that auto-build warning is always there. Compiler plugin has <release>17</release> and the module imports as 1.5 (which is what I suspect the problem is).
Even a NEW project created by InteliJ has this issue.
Is there a log somewhere that might have details on WHY the configuration is bad?
Hello,
Could you please provide exact steps how you create project or attach sample project for investigation?
I solved…
(1) ctrl + shift + A
(2) Reload all maven projects….