Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-11 Thread Omar@Gmail
Thanks Richard, Sounds like you know your stuff. I will check and confirm. Many Thanks Omar On 11 December 2013 03:05, Richard Vowles wrote: > Sonar downloads everything it needs (jar file wise) inside the plugin and > adds them to its Maven plugin classpath. If Sonar isn't doing this > proper

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-10 Thread Richard Vowles
Sonar downloads everything it needs (jar file wise) inside the plugin and adds them to its Maven plugin classpath. If Sonar isn't doing this properly, its Sonar's fault (I have spent *way* too much time in the internals of Sonar). On Tue, Dec 10, 2013 at 11:34 AM, Omar@Gmail wrote: > OK I see, s

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-09 Thread Omar@Gmail
OK I see, so we are throwing it over the fence :) Sonar has very nice solution for it's side which is a folder under lib to hold jdbc drivers, shame Maven doesn't. Seems I have to stick with hacking the mvn script file. Thanks guys this is done with. On 9 December 2013 22:06, Robert Scholte

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-09 Thread Robert Scholte
I agree with David. The Sonar team should be able to help you. I had a small look at the code of the *plugin*[1], and it doesn't contain any references to JDBC drivers. Sonar probably has a trick, which reuses the Maven classpath. Anyhow, they know the trick, so they should know the solution fo

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-09 Thread Omar@Gmail
Thanks David, The problem is Maven side as I have clearly explained so not not sure why I should pursue this on Sonar user list. Explain to me why you still think it is a Sonar issue. On 9 December 2013 00:44, David Karr wrote: > I suggest you pursue this on the Sonar user list, then. > > O

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread David Karr
I suggest you pursue this on the Sonar user list, then. On Sun, Dec 8, 2013 at 11:55 AM, Omar@Gmail wrote: > Thanks David, > > Yes Sonar on separate server. > > Also please see > http://www.mail-archive.com/users@maven.apache.org/msg132123.html > > > On 8 December 2013 18:31, David Karr wrote: >

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread Omar@Gmail
Thanks David, Yes Sonar on separate server. Also please see http://www.mail-archive.com/users@maven.apache.org/msg132123.html On 8 December 2013 18:31, David Karr wrote: > I assume that your Sonar server is not the box you're running Maven on? > > What Sonar properties are you setting in your

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread David Karr
I assume that your Sonar server is not the box you're running Maven on? What Sonar properties are you setting in your settings.xml? Feel free to omit the value for each if you need to. In the Sonar installation instructions there is a section titled "Adding the JDBC Driver" which talks about add

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread Omar@Gmail
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

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-07 Thread Robert Scholte
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 : Objective: Get Maven to publish sonar resu

Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-07 Thread Omar@Gmail
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 instal