AI智能
改变未来

IDEA Maven 报错Unable to import maven project: See logs for details

在IDEA菜单上选择help->Show Log In Explore

日志中有报错信息:

  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)
  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)
    2 errors

解决办法:
换maven版本,把3.6换成3.5就行,3.5.4下载地址
https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » IDEA Maven 报错Unable to import maven project: See logs for details