天天看點

maven pom導入報錯Unable to import Maven project

看日志

java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:

解決方案,配置maven 的java jdk路徑

set Settings > Build, Execution, Deployment > Build Tools > Maven > Importing > JDK for Importer to Use JAVA_HOME

然後問題就解決了。