I used @Scheduled in my Spring Boot project to implement some automated functionalities. I have included spring-boot-starter-scheduling in my POM.xml.
Initially, it worked fine, but after a few hours, an error occurred with the following message:
Missing artifact org.springframework.boot:spring-boot-starter-scheduling:jar:3.3.3
org.springframework.boot:spring-boot-starter-scheduling:jar:3.3.3 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced.
(It’s true that this artifact can’t be found on https://repo.maven.apache.org/maven2.)
However, since it was successfully downloaded to my .m2 earlier, it still works fine even without being referenced in the pom.xml.
What can I do to resolve this issue? (I need to share the updated project with my team.)