其他分享
首页 > 其他分享> > Maven执行Reimport命令报错:See logs for details

Maven执行Reimport命令报错:See logs for details

作者:互联网

Idea版本:2018.1.3

maven版本:3.6.2

Idea配置了本地下载的maven之后,不管是直接执行maven的Reimport命令,还是使用idea的Reimport按钮,都会报这个错误。

从网上找个方法是查看idea的日志,Help --> Show Log in Explorer,错误内容如下:

 1 2019-09-20 15:24:03,004 [22260334]  ERROR - #org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors:
 2 
 3 1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
 4   while locating org.apache.maven.model.path.PathTranslator
 5     for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
 6   at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)
 7 
 8 2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound.
 9   while locating org.apache.maven.model.path.UrlNormalizer
10     for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source)
11   at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

 

 后来我换成Idea默认的maven,版本3.3.9

 

 再执行命令居然不报错了,看来是maven版本太高和idea不兼容,我有下载了一个3.5.4版本的maven,配置上之后,可以正常使用。

看来配置各种环境还是要考虑idea的兼容性。

 

标签:DefaultPlexusContainer,logs,Reimport,idea,maven,报错,apache,org,model
来源: https://www.cnblogs.com/huanshilang/p/11557642.html