maven编译报错 was cached in the local repository 拉包失败
报错
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3:repackage (default) on project otpweb: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.springframework:spring-aop:jar:6.0.0-M4, org.springframework.boot:spring-boot-buildpack-platform:jar:3.0.0-M3: Failure to find org.springframework:spring-aop:jar:6.0.0-M4 in http://nexus3.msxf.com/repository/snapshots/ was cached in the local repository
, resolution will not be reattempted until the update interval of nexus3 has elapsed or updates are forced -> [Help 1]
主要是因为Maven默认会使用本地缓存的库来编译工程,而上次下载的库失败导致的。