Idea新建maven项目报错:Unable to import maven project: See logs for details
程序员文章站
2022-06-05 18:53:44
...
项目场景:
使用 idea 2017 新建 maven 项目。
问题描述:
maven 项目构建完成 Event log 报错:
13:18 Unable to import maven project: See logs for details
原因分析:
查看 idea 的日志文件
找到错误日志中的问题根源:
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)
百度发现原因为 idea 的版本和 maven 版本不匹配
我的 2017 idea 配的是 maven 3.6.3
解决方案:
在 maven 官网找到 2017 年 3 月附近的 maven 版本,我换的是 maven 3.5.4
最后,在 conf 目下的 settings.xml 中配置国内镜像和本地仓库。重新配置 idea 中使用的 maven 版本即可……
推荐阅读
-
Intellj IDEA2018 使用 MAVNE版本的坑 Unable to import maven project: See logs for details
-
IDEA 2019.2.2配置Maven3.6.2打开Maven项目出现 Unable to import Maven project的问题
-
基于idea的maven配置和Unable to import maven project: See logs for details报错
-
IDEA新建maven项目报错Unable to import maven project: See logs for details && IDEA Maven 报错 No implementati
-
1.IntelliJ IDEA 2018.2导入项目报 Unable to import maven project: See logs for details
-
IDEA Unable to import maven project: See logs for details
-
Unable to import maven project: See logs for details
-
Unable to import maven project,Unable to import maven project: See logs for details
-
Unable to import maven project: See logs for details
-
Unable to import maven project: See logs for details