15:32:51 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project udf-id-authority: Unable to execute SonarQube: Fail to download sonar-scanner-engine-shaded-7.2.1-all.jar to ?/.sonar/cache/_tmp/fileCache4212163220525611418.tmp: EOFException -> [Help 1]
Question is, why is the “User cache” set to a strange value (?/.sonar/cache/_tmp/...), and how can I set it to be cleared?
The “user cache” should be located inside the user directory. Looks like you have a misconfigured user.home system property and it’s using ?, which is an invalid path.
You can overwrite it it by exporting SONAR_USER_HOME before running the scanner.
For example: export SONAR_USER_HOME=/home/myusername
export SONAR_USER_HOME=/home/jenkins/workspace/danube-model-jenga_PR-97-J2LDO6CVEBDWOKFXY4HIGTNXR625R52IWEHFANTXQLEWVSVLN6WQ and still ended up failing with:
So it turns out the missing dependency lives on the server: /opt/sonarqube/lib/scanner/sonar-scanner-engine-shaded-7.2.1-all.jar so how can I get it to be recognized by maven when I invoke the build?