Unable to import maven project

I'm using 142.3553.1. Sometimes idea cannot import a maven project. The errors are:

4:02:29 PM Unable to import maven project: See logs for details
4:02:29 PM NoClassDefFoundError: com/google/common/base/Function

And for the same project, sometimes it can.


Could you reproduce the issue and attach the whole idea.log file, please?


Thanks for replying.

For a default project, I set up maven in idea like this: maven-3.3.3, maven-3.3.3\conf\settings.xml which is
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

Then everything is ok. By the way, I also set the proxy in idea to the host, port, username and password as above.
After that I switch to maven-3.0.3, C:\Users\qwertyu\.m2\settings.xml which is
<?xml version="1.0" encoding="UTF-8"?>
            <name>Plasma Central</name>


And I get issues "Unable to import maven project".

1st edit: after being unable to import maven project with maven-3.0.3, I try to import with maven-3.3.3 and surprisingly I cannot import a maven project this time. Another log file is attached (all the log messages from the previous try were deleted in this file).


Unfortunately, I can not reproduce the issue.
Btw, does it help if you close IDEA after maven version switch?


I cannot reproduce it now either. Now everything is smooth. Have no idea what had happened. I think it only happens when the environment has some issue. If the idea code can tell what was happening when the NoClassDefFound exception occurred, then it will be very helpful.


Please sign in to leave a comment.