Unable to build SonarQube from source

Hi all,

I’m trying to update the endpoint used for Bitbucket Server (Data Center) URL validation to solve the issue here. I’d like to test this locally before creating the PR, but I receive the following when trying to build:

FAILURE: Build failed with an exception.

* Where:
Build file '/path/to/sonarqube/sonar-application/build.gradle' line: 149

* What went wrong:
A problem occurred evaluating project ':sonar-application'.
> Could not resolve all artifacts for configuration ':sonar-application:zipDist'.
   > Could not resolve sonarqube:elasticsearch:8.14.3-no-jdk-linux-x86_64.
     Required by:
         project :sonar-application
      > Could not resolve sonarqube:elasticsearch:8.14.3-no-jdk-linux-x86_64.
         > Could not get resource 'https://repox.jfrog.io/repox/sonarsource/sonarqube/elasticsearch/8.14.3-no-jdk-linux-x86_64/elasticsearch-8.14.3-no-jdk-linux-x86_64.pom'.
            > Could not GET 'https://repox.jfrog.io/repox/sonarsource/sonarqube/elasticsearch/8.14.3-no-jdk-linux-x86_64/elasticsearch-8.14.3-no-jdk-linux-x86_64.pom'. Received status code 401 from server: 
      > Could not resolve sonarqube:elasticsearch:8.14.3-no-jdk-linux-x86_64.
         > Could not get resource 'https://repox.jfrog.io/repox/sonarsource-bucket/sonarqube/elasticsearch/elasticsearch-8.14.3-no-jdk-linux-x86_64.tar.gz'.
            > Could not HEAD 'https://repox.jfrog.io/repox/sonarsource-bucket/sonarqube/elasticsearch/elasticsearch-8.14.3-no-jdk-linux-x86_64.tar.gz'. Received status code 401 from server: 

Any advice or assistance is greatly appreciated!

This was user error. I had artifactoryUsername and artifactoryPassword in ~/.gradle/gradle.properties.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.