Could not resolve dependencies for project - Aspose Cells - maven repo

Hello Aspose team,

Please, my team is facing an issue while trying to build our CI/CD flow. While in localhost (both on self machine and inside docker images), our project happens to download all aspose dependencies successfully.

However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.

We are trying to download it from maven repository, and the root docker image is: maven:3.6.3-openjdk-11

Please, are we missing something?
Failed to execute goal on project server: Could not resolve dependencies for project com......project....:jar:version: Failed to collect dependencies at com.aspose:aspose-cells:jar:17.11: Failed to read artifact descriptor for com.aspose:aspose-cells:jar:17.11: Could not transfer artifact com.aspose:aspose-cells:pom:17.11 from/to AsposeJavaAPI (https://repository.aspose.com/repo/): Authorization failed for https://repository.aspose.com/repo/com/aspose/aspose-cells/17.11/aspose-cells-17.11.pom 403 Forbidden

@guilherme.gradus,

Could you please try it again now, it should work fine. We had a migration (to newer server) process which was started a few days back. The process is completed now.

Let us know if you still find the issue.

A post was split to a new topic: Could not resolve dependencies for project - Aspose.Slides - maven repo

Hello @Amjad_Sahi, I’ve tested just now both locally and remotely, at github actions’ servers from the same docker image.

Locally it works, but remotely, the error persists.

Could it be being blocked depending on the network or something?

1 Like

@guilherme.gradus,

We will be looking into it and get back to you soon.

I’m having this exact same issue. I can resolve the dependency locally but not from a github action.

@aldenpas @guilherme.gradus

Please, my team is facing an issue while trying to build our CI/CD flow. While in localhost (both on self machine and inside docker images), our project happens to download all aspose dependencies successfully.

However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.

Apparently, it is DNS related issue as Github Actions are still using old DNS record even though it has changed in last weekend.

I will try to reproduce this issue at Github Actions and then get back to you for possible workaround. Thanks.

@Amjad_Sahi FYI.

@aldenpas @guilherme.gradus

However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.

I am able to resolve this issue by adding following step in Github Actions

  • name: Clear DNS Cache
    run: |
    sudo systemd-resolve --flush-caches

You can see full GitHub Actions yml file at https://github.com/farooqsheikhpk/java-hello-world-maven/blob/master/.github/workflows/maven.yml.

Related GitHub Log: https://snipboard.io/UW751n.jpg

Feel free to reach me for any issue related to it. Thanks.

@Amjad_Sahi FYI.

I tried adding the step to my github actions but it didn’t solve the problem. I still got the same error.

I added this as the first step in the job

  - name: Clear DNS Cache
    run: |
      sudo systemd-resolve --flush-caches

and still got this error

  > Could not resolve com.aspose:aspose-slides:20.2.
 Required by:
     project :
  > Could not resolve com.aspose:aspose-slides:20.2.
     > Could not get resource 'https://repository.aspose.com/repo/com/aspose/aspose-slides/20.2/aspose-slides-20.2.pom'.
        > Could not GET 'https://repository.aspose.com/repo/com/aspose/aspose-slides/20.2/aspose-slides-20.2.pom'. Received status code 403 from server: Forbidden

I’ve been facing the same problem since last Monday. In my case I use Azure Devops build pipelines.

Could not resolve dependencies for project com...:jar:1.8.10: Failed to collect dependencies at com...:jar:1.12.1 -> com.aspose:aspose-barcode:jar:21.7: Failed to read artifact descriptor for com.aspose:aspose-barcode:jar:21.7: Could not transfer artifact com.aspose:aspose-barcode:pom:21.7 from/to AsposeJavaAPI (https://repository.aspose.com/repo/): authorization failed for https://repository.aspose.com/repo/com/aspose/aspose-barcode/21.7/aspose-barcode-21.7.pom, status: 403 Forbidden

@aldenpas

I tried adding the step to my github actions but it didn’t solve the problem. I still got the same error.

Please do the following to verify it

  1. Fork this repo - GitHub - farooqsheikhpk/java-hello-world-maven: Java 8 / Maven / Standard CLI Java project to get started with.
  2. Try to run workflows as mention
    https://github.com/farooqsheikhpk/java-hello-world-maven/blob/master/.github/workflows/maven.yml

Please share its status here.

Furthermore, If you can share your project Github Action workflows file if it is not confidential.

Feel free to reach for any question related to it. Thanks.