Sonar, can't see my world world plugin

I'm trying to get started with developing sonar plugins. Ive started with this tutorial

http://docs.codehaus.org/pages/viewpage.action?pageId=117899451

Ive built this hello world plugin and copied the resulting jar (helloworld-1.0-SNAPSHOT.jar) into the / extensions / plugins directory.

I restored the war ..// war / build-war.sh

A new war file has been created. Then I launch the sonar offline and look at “Configuration> Settings” to try to view this plugin .... nothing. All the main plugs (Clover, Design ....), but not my new world world plugin.

There are no errors or relevant information in the logs. When I examine the new war file, I see that helloworld-1.0-SNAPSHOT.jar is added to / WEB -INF / lib /

Any ideas?

I am using sonar-plugin-api version 1.10, my sonar instance is version 2.1.2. Could this be a problem?

I do not have feedback from the sonar application, so I lost a little.

thank

+3
source share
1 answer

I think the textbook is out of date. In the latest sonar (2.1.2), if the plugin does not have a global configuration, it will not be displayed in the settings.

This is where I started, running the archetype will provide you with an updated sample plugin, it works great for me:

http://docs.sonarqube.org/display/SONAR/Getting+started

And these tips were really useful in the future:

http://docs.sonarqube.org/display/SONAR/Coding+a+plugin

+4
source

Source: https://habr.com/ru/post/1751304/


All Articles