遇到问题:

Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http://repo.maven.apache.org/
maven2 was cached in the local repository, resolution will not be reattempted until the update interval
of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.codehaus.plexus:plexus-archiver:jar:2.0.1 from/to central (http://repo.maven.apache.org/maven2):
No response received after 60000

网上查到的解决方案:
解决:
1.先去掉Maven工程的maven特性,选中工程 鼠标右键–>Maven–>Disable Maven Nature. 此步骤后pom.xml错误消失

2.为工程增加Maven特性,选中工程 鼠标右键–>Configure–>Convert to Maven Project.

经过上述步骤,Maven工程就正常了。