Idea拉取Jar包,报Unable to import maven project: See logs for details
查看日志信息No implementation for org.apache.maven.model.path.PathTranslator was bound
解决办法:
IDEA执行Maven报错
Unable to import maven project: See logs for details
Help -> Show Log in Explorer 查看详细的错误日志
- 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) 2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound. while locating org.apache.maven.model.path.UrlNormalizer for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source) at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)
解决办法
Maven与IDEA版本不一致导致:
当前:Maven-3.6.3 IDEA2019.01
修改Maven版本为:3.5.4
https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.4/binaries/
最后:修改maven在IDEA中的版本配置即可解决。