maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...

右击项目,点击Build Path,点击Libraries,可以看到有很多jar包出错。

maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...

maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...

 

解决:

1、右键项目,选择maven,选择update project

maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...

2、除默认选择外,再勾选Force Update of Snapshots/Releases,点击ok,等待maven依赖更新

maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...

 

如果等待依赖的时间太长,可以自行在网上下载对应的jar包,放在本地仓库中。