in28minutes / spring-boot-examples

Code Examples for everything thats written on www.springboottutorial.com
https://www.springboottutorial.com
1.24k stars 3.36k forks source link

springfox-boot-starter version v3.0.0-SNAPSHOT unavailable in remote repository #56

Open zee-bit opened 1 year ago

zee-bit commented 1 year ago

The spring-boot-2-rest-service-with-swagger has a dependency error in pom.xml, where several IDE report of missing artifact io.springfox:springfox-boot-starter:jar:3.0.0-SNAPSHOT, and the project cannot not be built. The exact error on running mvn clean compile is:

[ERROR] Failed to execute goal on project spring-boot-2-rest-service-swagger: Could not resolve dependencies for project com.in28minutes.springboot.rest.example:spring-boot-2-rest-service-swagger:jar:0.0.1-SNAPSHOT: Failure to find io.springfox:springfox-boot-starter:jar:3.0.0-SNAPSHOT in https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced

The maven repository for springfox-boot-starter, shows the latest version to be 3.0.0. Using this version in the pom.xml file resolves the error and the build completes successfully.