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 <davidmichaelk...@gmail.com> wrote:

> I suggest you pursue this on the Sonar user list, then.
>
> On Sun, Dec 8, 2013 at 11:55 AM, Omar@Gmail <omarnet...@googlemail.com
> >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 <davidmichaelk...@gmail.com> wrote:
> >
> > > 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 adding the Oracle JDBC driver to the
> > > SONAR installation.  Have you done this?
> > >
> > >
> > >
> > >
> > > On Sat, Dec 7, 2013 at 4:33 AM, Omar@Gmail <omarnet...@googlemail.com
> > > >wrote:
> > >
> > > > 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.
> > > >
> > >
> >
>

Reply via email to