aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven sonar and long running tests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven sonar and long running tests" Watch "Maven sonar and long running tests" New topic
Author

Maven sonar and long running tests

Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2052
    
  22

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2052
    
  22

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
 
subject: Maven sonar and long running tests
 
Similar Threads
SONAR-Open Source Tool-Need Help
sonar requires a project with an existing pom.xml, but the build is not using one
Code coverage in sonar
Add Header names to my columns at JTable?
Sonar keeps downloading plugins for every analysis