Cannot access dependencies in new Artifactory repository - 403 forbidden error

This morning my build process no longer works, and it appears that the switch over to the Artifactory repository is possibly the issue. The error I am getting is as follows from my Gradle build process (specifically the 403 forbidden):

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve org.camunda.bpm:camunda-bom:7.16.0-ee.
     Required by:
         project :
      > Could not resolve org.camunda.bpm:camunda-bom:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/camunda-bom/7.16.0-ee/camunda-bom-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/camunda-bom/7.16.0-ee/camunda-bom-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.camunda.bpm:camunda-bom:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/camunda-bom/7.16.0-ee/camunda-bom-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/camunda-bom/7.16.0-ee/camunda-bom-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
   > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:7.16.0-ee.
     Required by:
         project :
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/7.16.0-ee/camunda-bpm-spring-boot-starter-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/7.16.0-ee/camunda-bpm-spring-boot-starter-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/7.16.0-ee/camunda-bpm-spring-boot-starter-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/7.16.0-ee/camunda-bpm-spring-boot-starter-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
   > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:7.16.0-ee.
     Required by:
         project :
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.16.0-ee/camunda-bpm-spring-boot-starter-rest-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.16.0-ee/camunda-bpm-spring-boot-starter-rest-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.16.0-ee/camunda-bpm-spring-boot-starter-rest-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.16.0-ee/camunda-bpm-spring-boot-starter-rest-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
   > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:7.16.0-ee.
     Required by:
         project :
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-webapp-ee/7.16.0-ee/camunda-bpm-spring-boot-starter-webapp-ee-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-webapp-ee/7.16.0-ee/camunda-bpm-spring-boot-starter-webapp-ee-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-webapp-ee/7.16.0-ee/camunda-bpm-spring-boot-starter-webapp-ee-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-webapp-ee/7.16.0-ee/camunda-bpm-spring-boot-starter-webapp-ee-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
   > Could not resolve org.camunda.bpm:camunda-engine-plugin-spin:7.16.0-ee.
     Required by:
         project :
      > Could not resolve org.camunda.bpm:camunda-engine-plugin-spin:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/camunda-engine-plugin-spin/7.16.0-ee/camunda-engine-plugin-spin-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/camunda-engine-plugin-spin/7.16.0-ee/camunda-engine-plugin-spin-7.16.0-ee.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.camunda.bpm:camunda-engine-plugin-spin:7.16.0-ee.
         > Could not get resource 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/camunda-engine-plugin-spin/7.16.0-ee/camunda-engine-plugin-spin-7.16.0-ee.pom'.
            > Could not HEAD 'https://camunda.jfrog.io/ui/native/camunda-bpm/org/camunda/bpm/camunda-engine-plugin-spin/7.16.0-ee/camunda-engine-plugin-spin-7.16.0-ee.pom'. Received status code 403 from server: Forbidden

Taking one of the dependencies above, for example: https://camunda.jfrog.io/ui/native/camunda-bpm-ee/org/camunda/bpm/camunda-bom/7.16.0-ee/camunda-bom-7.16.0-ee.pom

…this does appear to exist in the repository, because pasting the URL into the browser downloads the POM file.

My Maven repo config in my gradle.build file is as follows (user name / pw obfuscated obviously). I have tried leaving the old URL’s in (which are redirected), or putting in the new one is as shown below, and both result in the same problem:

repositories {
    mavenCentral()

    maven {
        url 'https://camunda.jfrog.io/ui/native/camunda-bpm-ee'
        credentials {
            username "XXXXXXX"
            password "YYYYYYY"
        }
    }

    maven {
        url 'https://camunda.jfrog.io/ui/native/camunda-bpm'
    }
}

I can log into the repository via the browser OK using our EE credentials no problem.

Any ideas? Thanks in advance.

Hey @Justin_Phillips,
thanks for the report and sorry for the inconvenience.

I’m still trying to locate the exact issue but could you try whether changing the URL to
https://camunda.jfrog.io/artifactory/private or https://app.camunda.com/nexus/content/groups/private would work as a temporary workaround?

I could replicate your issue with a small gradle setup and those mentioned URLs worked for me as a workaround.
Private is a virtual group of repositories, which includes the “camunda-bpm-ee” files.

Let me know how it works out
Lars

//edit:
for the camunda-bpm files the virtual repository “public”, could provide you with a workaround / not sure whether those are an issue as maven central provides them as well.

3 Likes

@Langleu Thank you for the swift response. Yes, your suggestion works, and I have removed the public repository because as you said, Maven Central has those dependencies. Here is my new Grade build config:

repositories {
    mavenCentral()

    maven {
        url 'https://camunda.jfrog.io/artifactory/private'
        credentials {
            username "XXXXX"
            password "YYYYY"
        }
    }
}
1 Like