一 版本兼容问题
1.查看日志
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
java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:
在Stack Overflow搜索下可知道这是maven与idea的版本兼容问题, 在IDEA2019.2.3版本已经修复.
如果你的IDEA是比较老的版本, 而maven比较新的话, 那就是遇见版本兼容的问题, 可通过安装较老的maven版本来解决,或者升级IDEA.
附上maven资源地址:
https://archive.apache.org/dist/maven/maven-3/