Hotdeploying jars with Sonar

6 messages Options
Embed this post
Permalink
Christopher Moraes () Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Hi Everyone,

I'm working on a plugin for sonar and every time I want to test the plugin, I deploy and restart the Sonar server.

This is not very convenient as it take a couple of minutes to start the server.   Is there a way to hot deploy plugins / jars to a running Sonar server?  

Regards,
Chris



Olivier Gaudin () Re: Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Hi Christopher,

No there is not at the moment. There might be a slight optimization you will find on this page, but that's about it for now.

Olivier


On Thu, Oct 22, 2009 at 5:03 PM, Christopher Moraes <[hidden email]> wrote:
Hi Everyone,

I'm working on a plugin for sonar and every time I want to test the plugin, I deploy and restart the Sonar server.

This is not very convenient as it take a couple of minutes to start the server.   Is there a way to hot deploy plugins / jars to a running Sonar server?  

Regards,
Chris




Alexander von Zitzewitz () Re: Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Hotdeploying jars with Sonar That would be a nice feature. But it would already help if the server startup time could be reduced. I am wondering why the startup takes so long...

Regards

Alexander


On 10/22/09 12:35 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Hi Christopher,

No there is not at the moment. There might be a slight optimization you will find on this page <http://docs.codehaus.org/display/SONAR/Development> , but that's about it for now.

Olivier


On Thu, Oct 22, 2009 at 5:03 PM, Christopher Moraes <moraes.christopher@...> wrote:
Hi Everyone,

I'm working on a plugin for sonar and every time I want to test the plugin, I deploy and restart the Sonar server.

This is not very convenient as it take a couple of minutes to start the server.   Is there a way to hot deploy plugins / jars to a running Sonar server?  

Regards,
Chris






Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327



Freddy Mallet () Re: Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Hi Alexander,

We know that we need to greatly improve this startup time. All rules repositories are (re)created when starting Sonar and too many sql requests are generated. With Sonar 1.12, this startup time should be reduced by 2 and this is a good beginning.

regards,
Freddy


On Thu, Oct 22, 2009 at 7:49 PM, Alexander von Zitzewitz <[hidden email]> wrote:
That would be a nice feature. But it would already help if the server startup time could be reduced. I am wondering why the startup takes so long...

Regards

Alexander



On 10/22/09 12:35 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Hi Christopher,

No there is not at the moment. There might be a slight optimization you will find on this page <http://docs.codehaus.org/display/SONAR/Development> , but that's about it for now.


Olivier


On Thu, Oct 22, 2009 at 5:03 PM, Christopher Moraes <moraes.christopher@...> wrote:
Hi Everyone,

I'm working on a plugin for sonar and every time I want to test the plugin, I deploy and restart the Sonar server.

This is not very convenient as it take a couple of minutes to start the server.   Is there a way to hot deploy plugins / jars to a running Sonar server?  

Regards,
Chris






Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327




Christopher Moraes () Re: Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Hi Freddy,

I have a question about this point you mention 

 All rules repositories are (re)created when starting Sonar and too many sql requests are generated. 

I had deployed a jar with 10 new rules for PMD in the extensions/rules/pmd folder.  Later a few rules were dropped and the jar contained only 6 rules (jar and xml were updated).  However I could still see all the 10 rules in the sonar quality profile after the server is restarted.  Even when I remove the jar from the extensions folder, the rules still appear in the quality profile.  

If the repositories are supposed to be recreated, is this a bug?

Regards,
Chris
Freddy Mallet () Re: Hotdeploying jars with Sonar
Reply Threaded More More options
Print post
Permalink
Hi Chris,

This is an open issue http://jira.codehaus.org/browse/SONAR-343

regards,
Freddy

On Thu, Oct 22, 2009 at 10:56 PM, Christopher Moraes <[hidden email]> wrote:
Hi Freddy,

I have a question about this point you mention 

 All rules repositories are (re)created when starting Sonar and too many sql requests are generated. 

I had deployed a jar with 10 new rules for PMD in the extensions/rules/pmd folder.  Later a few rules were dropped and the jar contained only 6 rules (jar and xml were updated).  However I could still see all the 10 rules in the sonar quality profile after the server is restarted.  Even when I remove the jar from the extensions folder, the rules still appear in the quality profile.  

If the repositories are supposed to be recreated, is this a bug?

Regards,
Chris