To fix issues that are related to the Maven projects that won't start or import, you can perform one of the following actions. How to fix problems with Maven projects that won't start Open Project Structure dialog and select Project from the options on the left.Ĭheck the source language level for your project.Ĭheck the source language level for each module (click the Sources tab). Check the language level in the project structure If you have imported a multi-level project, you can check project structure settings for source language level configuration. On the page that opens, check if Project bytecode version and Target bytecode version match, or leave the Target bytecode version option blank so it can be determined from JDK. In the Settings/Preferences dialog ( Ctrl+Alt+S), go to Build, Execution, Deployment | Compiler | Java Compiler.
So, now after this project is imported the language level should be picked up.Ĭheck the Java compiler settings to see if the bytecode versions match.
Note that the configurations specified in your POM overrides any configurations specified in your project structure.