We have been facing the same issue since Thursday afternoon in a gradle build on gitlab. Everything compiles locally and the build finishes normally. When we run it in a gitlab runner it fails.
I’ve tried multiple versions, and even went back and triggered a build that finished successfully on Thursday morning only to see it fail.
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not download aspose-pdf-23.9.jar (com.aspose:aspose-pdf:23.9)
> Could not get resource 'https://releases.aspose.com/java/repo/com/aspose/aspose-pdf/23.9/aspose-pdf-23.9.jar'.
> Could not GET 'https://releases.aspose.com/java/repo/com/aspose/aspose-pdf/23.9/aspose-pdf-23.9.jar'. Received status code 403 from server: Forbidden
When I try to pull the ‘jdk17’ version it can’t find the POM:
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.aspose:aspose-pdf:24.5.
Required by:
project :
> Could not resolve com.aspose:aspose-pdf:24.5.
> Could not get resource 'https://releases.aspose.com/java/repo/com/aspose/aspose-pdf/24.5/aspose-pdf-24.5.pom'.
> Could not GET 'https://releases.aspose.com/java/repo/com/aspose/aspose-pdf/24.5/aspose-pdf-24.5.pom'. Received status code 403 from server: Forbidden
> Could not resolve com.aspose:aspose-pdf:24.5.
> Could not get resource 'https://repository.aspose.com/repo/com/aspose/aspose-pdf/24.5/aspose-pdf-24.5.pom'.
> Could not GET 'https://repository.aspose.com/repo/com/aspose/aspose-pdf/24.5/aspose-pdf-24.5.pom'. Received status code 403 from server: Forbidden
Via a browser I can click all the way through from Aspose Repository Browser /java/repo/ to the jar and I’m able to download it. It just cannot get pulled from gitlab.
There is an extra “/” at the end. Please check if it resolves your issue.
@pankajkundlia@AssafBenMoshe@yesumary
Could you please also try suggested change in your configuration and let us know how it went. We will further proceed accordingly.
Apparently you guys were getting pinged repeatedly so the firewall team blocked anyone that was calling excessively which I am guessing included anyone from a shared job-runner place like gitlab/hub/asure/etc. Once your hosting company/team changed the firewall rules our build started working although it looks like it’s not working for everyone.
Somehow, it worked only once after that am facing same issue. It’s not consistent.
Please provide solution asap, because of this our production deployment is blocked.