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.