出现 Try run Maven import with -U flag (force update snapshots) 的解决方法

1. 问题所示

在配置Maven依赖信息的时候,出现如下问题:

com.alibaba.nacos:nacos‐client:pom:1.1.3 failed to transfer from http://nexus.hepengju.cn:8081/nexus/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact com.alibaba.nacos:nacos‐client:pom:1.1.3 from/to nexus (http://nexus.hepengju.cn:8081/nexus/content/groups/public/): transfer failed for http://nexus.hepengju.cn:8081/nexus/content/groups/public/com/alibaba/nacos/nacos%E2%80%90client/1.1.3/nacos%E2%80%90client-1.1.3.pom

Try run Maven import with -U flag (force update snapshots)

截图如下所示:

猜你喜欢

转载自blog.csdn.net/weixin_47872288/article/details/131987102