I'm looking at spring-boot at the moment, but cannot access the repo.spring.io maven repository in builds.
I've created the initial Gradle build file , but receive a 401 (Unauthorised) response when I try to run the build for the first time. I've tried pulling down the POM/JARs manually (to manually deploy to my local repo), but again receive 401.
If I browse to the relevant folder and click on the JAR (POMS seem to be OK), I receive a 401 error here too (response is: The server http://repo.spring.io:80 requires a username and password. The server says: Artifactory Realm
)
Can someone direct me to a repo I can actually pull these files from? Alternatively, can someone direct me to where I can get credentials for this repo?
Thanks
repo.spring.io lazily caches the contents of Maven Central. You don't say which dependency it is that's causing a problem, but I believe the problem that you're seeing is that you're attempting to access an artifact that has yet to be cached. This will result in a 401 response.
Trying adding mavenCentral()
to the configured repositories in build.gradle
. For example:
repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
}