The article summary
问题描述
使用idea创建maven项目时报Unable to import maven project
原因
通过查看日志文件,发现如下:
2 errors
java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:
1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
while locating org.apache.maven.model.path.PathTranslator
for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)
解决办法
我的maven使用的3.6.3,将maven重新替换成3.5.4问题解决