Maven - Received status code 403 from server: Forbidden

14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.mockito:mockito-core:2.+.
14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   Required by:
14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       project :
14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > Failed to list versions for org.mockito:mockito-core.
14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/org/mockito/mockito-core/maven-metadata.xml.
14:29:32.099 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          > Could not HEAD 'https://repo.maven.apache.org/maven2/org/mockito/mockito-core/maven-metadata.xml'. Received status code 403 from server: Forbidden

Getting 403 Forbidden recently on OpenJDK 11 builds on Travis for some strange reason. OpenJDK 12 works fine.

Build Log error line: https://travis-ci.org/frextrite/coala-jetbrains/jobs/569380032#L4180 and another https://travis-ci.org/frextrite/coala-jetbrains/jobs/569293740#L4186

Looks like a Travis issue since the problem is only with OopenJDK 11 build.

Imprint