eclipse导入新的maven项目时,pom.xml第一行报错:
org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)
原因是你的maven的配置文件不是最新的,执行以下步骤:
1、help->Install New Software -> add -> https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST/
或者http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/
注意:点击next前,将eclipse Install 窗口右下角的 "Contact all update sites during install to find required software"选项取消掉。
2、一直next confirm 安装更新,最后提示重启eclipse,重启后再右键项目maven update project.
来源:oschina
链接:https://my.oschina.net/u/4370408/blog/3637138