小码问答,有问必答!

2020-08-06 16:28

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

2020-08-06 16:28 回答了这个问题


微信图片_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)


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

0条评论

我要评论