Unable to import maven project: See logs for details

Answered

I have IntelliJ 2018.2 Ultimate edition and recently ran into this issue when  I cloned a Maven project from my company's Git:

Unable to import maven project: See logs for details

First of all there are no any logs where I can check the details. At the same time if I go to the command line and run Maven build "mvn clean install" then project is being built successfully. It tells me  that my POM.XML and project structure is correct. I also tried to create a basic Maven project : File->New->Project->Maven Project but I got the same issue. At the same time my older projects are getting build and are recognized as Maven projects. I suspect that there is something wrong with my Maven Plugin. 

0
8 comments

@Serge. Where can I find the logs? Event Log window is empty

0

See the first link in my previous comment.

0

2022-03-29 10:56:28,258 [ 894664]  ERROR -       #com.intellij.ui.AppIcon - IntelliJ IDEA 2018.2.2  Build #IU-182.4129.33 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - JDK: 1.8.0_152-release 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - VM: OpenJDK 64-Bit Server VM 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - Vendor: JetBrains s.r.o 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - OS: Windows 10 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - Last Action: ShowProjectStructureSettings 
2022-03-29 10:56:28,259 [ 894665]  ERROR -       #com.intellij.ui.AppIcon - Could not initialize class com.intellij.ui.Win7TaskBar 
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.ui.Win7TaskBar

0

This log fragment is not relevant to the problem. Please contact support with the sample project to reproduce and complete logs.

Am I right that you still have this issue in the current release version?

0

I have other members of my team who run the same version and edition of IntelliJ IDEA IDE and they don't have any issues cloning and building the project.

 

I checked an IDEA.LOG file ( Help->Show Logs in Explorer ) and there are no other messages but the one that I submitted. 

I don't think updating the version of an IDE is an option for me due to the corporate security policies.

0

Check Maven JDK settings: https://i.imgur.com/SbuV0a9.png. Try using a different JDK version. Maybe some external security tool/antivirus is blocking/killing the Maven importer process. Check windows event logs for details: https://www.howtogeek.com/123646/htg-explains-what-the-windows-event-viewer-is-and-how-you-can-use-it/ .

0

@Serge,  It happened to be a JDK build. When I switched from 1.8.0_311 to 1.8.0_291 everything worked. Thank you for your help.

0

Please sign in to leave a comment.