Multiple annotations found at this line:
- Failure to transfer org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 from
http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 from/to alimaven
(http://maven.aliyun.com/nexus/content/groups/public/): The operation was cancelled.
- Project build error: Non-resolvable parent POM for org.glassfish.jersey:jersey-bom:2.35: Failure to transfer org.eclipse.ee4j:project:pom:1.0.6 from
http://maven.aliyun.com/nexus/
content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not
transfer artifact org.eclipse.ee4j:project:pom:1.0.6 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): The operation was cancelled.
使用maven 出现ArtifactTransferException:Failure to transfer应该是下载过程中网络不好出错了,参考
对于这个包传输以本地仓库失败,不会重新下载,直到maven再改更新索引,或强制更新。
实际的解决办法是:直接去本地仓库,(C:\Users\Administrator\.m2\repository)把这个文件夹下的文件全部删除掉(因为包没有下载下来),再次刷新你的项目就中以了,或者在你的项目上右击,选择maven--->update project (勾选 force update)就可以了。
这里文件名spring-aop:jar:3.2.8.RELEASE只是举例子。得看看自己项目用的是哪些文件,没有完全下载成功。删掉就可以强制maven重新下载。