Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93F4410A67 for ; Sun, 8 Dec 2013 15:39:58 +0000 (UTC) Received: (qmail 40507 invoked by uid 500); 8 Dec 2013 15:39:51 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 40393 invoked by uid 500); 8 Dec 2013 15:39:43 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 40383 invoked by uid 99); 8 Dec 2013 15:39:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Dec 2013 15:39:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omarnetbox@googlemail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Dec 2013 15:39:35 +0000 Received: by mail-vc0-f173.google.com with SMTP id ia6so2592787vcb.4 for ; Sun, 08 Dec 2013 07:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VX8mpLh9r458P5ura6OkafFzKuQy+/WXANcux2YBts4=; b=vQGZQ/+T6R7m7X8nzrhhKt5qbVjIucLtbobQjSbX5MUNCP0m5zZK+rMl8ob7fNFZZb lTS39TF1HRyft1vvM5SPN7uHEuGHfk/wRjSmFbqsAz+qgsxfT/EzOiNAceCR9tEQZTq8 8Wm1RgnQHjiA3ffC6DDAW+Qywqs3eNr3wHEw3+FQRUL3QbDXMZKGTgAM87m/7e6+RleN WxdzhIYB+atb4T38BWVaR0it7uK3Vyf0v1bGdN0yCTVvScIJtZk7gRh9Qh12BvdB4JTr QE3dLFWTynPCZZYLeLL6Z3yE61/p0ADbizPzqwoTA+qr3w6Y1GE8QnhX/HUEdXZQVCJ4 k85g== MIME-Version: 1.0 X-Received: by 10.52.245.42 with SMTP id xl10mr331539vdc.35.1386517154661; Sun, 08 Dec 2013 07:39:14 -0800 (PST) Received: by 10.220.247.208 with HTTP; Sun, 8 Dec 2013 07:39:14 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Dec 2013 15:39:14 +0000 Message-ID: Subject: Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver' From: "Omar@Gmail" To: Maven Users List Content-Type: multipart/alternative; boundary=089e015383807a88f804ed07aeb0 X-Virus-Checked: Checked by ClamAV on apache.org --089e015383807a88f804ed07aeb0 Content-Type: text/plain; charset=ISO-8859-1 Thanks Robert, Not sure I agree. I start Sonar with a fresh empty database and I can see it creates the needed tables, so no exceptions. I then invoke mvn sonar:sonar but get the driver exception so to me the problem is Maven side, especially that I configured Maven in the setting.xml to connect to Sonar upload data like so: http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven Agree? Omar On 7 December 2013 18:21, Robert Scholte wrote: > It is not Maven who requires the driver, but Sonar(Qube). > > See http://docs.codehaus.org/display/SONAR/Installing#Installing- > installingDatabaseInstallingtheDatabase for the details. > > Robert > > Op Sat, 07 Dec 2013 13:33:09 +0100 schreef Omar@Gmail < > omarnetbox@googlemail.com>: > > Objective: Get Maven to publish sonar results to running Sonar server >> >> Steps: >> >> - Installed and ran Sonar, accessible from browser >> - The back-end database is Oracle >> >> - >> >> Installed and configured Maven in settings.xml file to connect to the >> Oracle db >> - >> >> Invoked: mvn clean install -DSkipTests=true >> - Invoke: mvn sonar:sonar >> >> >> But getting following mvn sonar:sonar Fail to connect to database: Cannot >> load JDBC driver class 'oracle.jdbc.OracleDriver' >> >> So I need somehow to put the ojdbc6.jar on Maven classpath. Tried placing >> the ojdbc6.jar in /lib and lib/ext but did not help. >> >> Am I missing something here? please help. >> >> To fix this I modified *maven113home/bin/mvn*.bat at line 161 and added >> >> >> %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath path/to/ojdbc6.jar;... >> >> *Which is nasty!* >> >> >> Please suggest a better approach. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --089e015383807a88f804ed07aeb0--