File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven sonar and long running tests

 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SO, I'm trying to integrate sonar into our build process. Actually, it was already done by another person, and it felt into disuse. I'm just trying to revive it. I already have sonar installed on a machine in the network. I am running sonar on the maven build on my local. I have configured the sonar jdbc url in my settings xml to point to the MSQL database on the sonar server.

The problem is ine one of the modules, the unit tests take a lot of time to run. So, sonar loses the connection with the MYSQL database. Is there any way to increase that timeout? COuld it be done via the JDBC URL?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jayesh,
Yes, you can set various timeouts and autoReconnect in the http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html. Also check what version of Sonar you are using. This bug suggests older versions still had a problem even if you had your JDBC connection set up right.
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh wow, looks lie it was fixed pretty recently. Thanks for finding it, Jeanne. I'll try to plugin the new version
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic