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.
Please sign in to leave a comment.
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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>C:\working\dev\maven_repo</localRepository>
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>qwertyu</username>
<password>qwer1234</password>
<host>proxy.xxx.com</host>
<port>8080</port>
<nonProxyHosts>xxx.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
After that I switch to maven-3.0.3, C:\Users\qwertyu\.m2\settings.xml which is
<settings>
<localRepository>C:\working\dev\maven_repo</localRepository>
<mirrors>
<id>plasma-central</id>
<name>Plasma Central</name>
<mirrorOf>*</mirrorOf>
<url>http://plasmadev.xxx.com:8000/nexus/content/groups/plasma-development</url>
</mirror>
</mirrors>
</settings>
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).
Attachment(s):
idea.log.zip
idea.log.zip
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.