On 2016-12-21, Gilles wrote:

> I've added "sonar:sonar" at the end of the maven command line for
> this job:
>   https://builds.apache.org/view/Apache Commons/job/Commons_RNG__Java8

> The build fails with this error:
> ---CUT---
> [ERROR] Failed to execute goal
> org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar
> (default-cli) on project commons-rng-parent: Fail to connect to
> database: Cannot load JDBC driver class 'org.h2.Driver' -> [Help 1]
> ---CUT---

You need to check the "Prepare SonarQube Scanner environment" checkbox
and add -Dsonar.host.url=$SONAR_HOST_URL to the mvn command line. See
https://builds.apache.org/job/Commons-Compress%20SonarQube/configure for
an example.

Stefan

Reply via email to