maven的pom文件出现Multiple annotations found at this line...,已解决

把编好的maven项目放在另一台电脑,pom.xml出现错误
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-testCompile, phase: test-compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be
resolved: The repository system is offline but the artifact com.google.collections:google-collections:jar:1.0 is not available in the local repository.
- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be
resolved: The repository system is offline but the artifact com.google.collections:google-collections:jar:1.0 is not available in the local repository.
解决方法:
将maven的repository此文件夹下的所有文件删除
maven的pom文件出现Multiple annotations found at this line...,已解决
repository文件路径在此处可以找到
maven的pom文件出现Multiple annotations found at this line...,已解决
重启Eclipse IDE,在maven项目上按下Alt+F5,勾选下面两项
maven的pom文件出现Multiple annotations found at this line...,已解决
等它自己慢慢下载完资源就行了
maven的pom文件出现Multiple annotations found at this line...,已解决