• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven Sonar plugin... how does it work?

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using Maven 3 for building our multi module app, and we had installed Sonar 2.8 and have a sonar build working in our CI environment that would publish the results to the sonar. Unfortunately, that sonar build stopped working. I investigated and I found that we had introduced an unit test that takes a long time to run. the Maven sonar plugin opens a connection to the database server and keeps it open while the test is running. Eventually, the connection times out while the unit test is running, and sonar bombs.

I googled around and it looks like this was a bug in Sonar that was fixed recently. So, I installed SOnar 3.5.1 on a server. I assumed that I had to use a maven sonar 3.5.1 plugin, but all their documentation says that we should put 2.0 in the version number of the plugin. Which is kind of screwy to me. I assumed that the plugin is opening a connection to the database, and unless I don;t upgrade the plugin, I will still get the problem. So, how do I upgrade the plugin

Is my assumption wrong? is the plugin doing like web service calls to the server, and the server opens DB connections?

The test is running right now. I should know whether it really worked or not. It did run some long running tests but hasn;t hit the one it was failing on. So, how does it work?
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic