问题:pom.xml中报错:
ArtifactTransferException: Failure to transfer javax.persistence:persistence-api:jar:1.0 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 javax.persistence:persistence-api:jar:1.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.
解决方法:
在C:\Users\XX\.m2\repository\javax
删除下面的javax中的persistence文件夹,重新下载。然后更新项目。