小码问答,有问必答!

我的maven一直无法引入,啥原因看不出来


微信图片_20200806162728.jpg


日志文件:


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)


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)


JavaEE

收藏

1个回答

我要回答

  • author
    牛叔叔 2020-08-06 16:28

    是不是Maven版本问题,可以检查一下Maven版本,更新安装一下最新版本试试。