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
0
8 comments

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.

0

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.

 

0

The error message you received indicates that there is a problem with the Maven project configuration in your IntelliJ IDEA IDE. This error occurs when IntelliJ IDEA tries to compile a Maven project without the necessary project configuration.

To resolve this issue, you can try the following steps:

  1. Make sure that you have properly imported the Maven project into IntelliJ IDEA. You can do this by opening the project's pom.xml file or by selecting "Import Project" from the IntelliJ IDEA welcome screen and choosing the project's directory.

  2. Check that you have the necessary Maven plugins and dependencies configured in your pom.xml file. Ensure that the required dependencies are correctly defined and that the Maven plugins are properly configured.

  3. Verify that you have a valid JDK (Java Development Kit) configured in IntelliJ IDEA. Go to File > Project Structure > Project Settings > Project and ensure that the correct JDK is selected.

  4. If the issue persists, try refreshing the project or restarting IntelliJ IDEA. Sometimes, IDE issues can be resolved by simply refreshing the project structure or restarting the IDE.

  5. Ensure that your IntelliJ IDEA version is compatible with the JDK version you are using. In your case, IntelliJ IDEA 2023.1.2 with JDK 20 may not be a compatible combination. Verify the compatibility of your IDE version with the JDK version and consider using a compatible JDK version.

    Thanks. mythdhr

0

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).

0

Even a NEW project created by InteliJ has this issue.

0

Is there a log somewhere that might have details on WHY the configuration is bad? 

0

Hello,

Could you please provide exact steps how you create project or attach sample project for investigation?

0

I solved… 

 (1) ctrl + shift + A

 (2) Reload all maven projects….

0

Please sign in to leave a comment.